From c3ce85c34a1a90e9ab5fc2fa9bee63daeb2087da Mon Sep 17 00:00:00 2001 From: Bruno Sinou Date: Wed, 28 Jan 2015 22:48:32 +0000 Subject: [PATCH] Workaround to enable file download for the workbench in a web / workbench mutalized environment. git-svn-id: https://svn.argeo.org/commons/trunk@7728 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- .../src/org/argeo/eclipse/ui/specific/OpenFile.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.argeo.eclipse.ui.rap/src/org/argeo/eclipse/ui/specific/OpenFile.java b/org.argeo.eclipse.ui.rap/src/org/argeo/eclipse/ui/specific/OpenFile.java index b55521b12..4d2937273 100644 --- a/org.argeo.eclipse.ui.rap/src/org/argeo/eclipse/ui/specific/OpenFile.java +++ b/org.argeo.eclipse.ui.rap/src/org/argeo/eclipse/ui/specific/OpenFile.java @@ -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 -- 2.30.2