Workaround to enable file download for the workbench in a web / workbench mutalized...
authorBruno Sinou <bsinou@argeo.org>
Wed, 28 Jan 2015 22:48:32 +0000 (22:48 +0000)
committerBruno Sinou <bsinou@argeo.org>
Wed, 28 Jan 2015 22:48:32 +0000 (22:48 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@7728 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.eclipse.ui.rap/src/org/argeo/eclipse/ui/specific/OpenFile.java

index b55521b126d804b07ca2332f2600f9dda9bbae4d..4d293727351a4e983e428660d593db76ebc0cd91 100644 (file)
@@ -71,7 +71,9 @@ public class OpenFile extends AbstractHandler {
                        log.debug("URL : " + downloadUrl);
 
                UrlLauncher launcher = RWT.getClient().getService(UrlLauncher.class);
-               launcher.openURL(downloadUrl);
+               // FIXME: find a way to manage correctly the addition of the base
+               // context for the workbench.
+               launcher.openURL("/ui" + downloadUrl);
 
                // These lines are useless in the current use case but might be
                // necessary with new browsers. Stored here for memo