Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGéry Deloge2016-12-21 10:42:32 -0500
committerGerrit Code Review @ Eclipse.org2017-01-09 08:47:15 -0500
commit57c34caacd0d04f999224dab2e0b49e5888c67fe (patch)
tree2ec353a23310dddc417f0ee752b90e7a07701da3
parent91a63bff21026eb2ce1fe3993364bc2a1452eae7 (diff)
downloadorg.eclipse.papyrus-57c34caacd0d04f999224dab2e0b49e5888c67fe.tar.gz
org.eclipse.papyrus-57c34caacd0d04f999224dab2e0b49e5888c67fe.tar.xz
org.eclipse.papyrus-57c34caacd0d04f999224dab2e0b49e5888c67fe.zip
Bug 509595: [model editor] model names spaces are replaced by %20 in tab
Change-Id: I70998265b84b42c9c851f69025c0f0d074dd3569 Signed-off-by: Géry Deloge <gery.deloge@cea.fr>
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.ui/src/org/eclipse/papyrus/infra/ui/editor/CoreMultiDiagramEditor.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/infra/ui/org.eclipse.papyrus.infra.ui/src/org/eclipse/papyrus/infra/ui/editor/CoreMultiDiagramEditor.java b/plugins/infra/ui/org.eclipse.papyrus.infra.ui/src/org/eclipse/papyrus/infra/ui/editor/CoreMultiDiagramEditor.java
index e0eff8ff1d4..58cb5db23ad 100644
--- a/plugins/infra/ui/org.eclipse.papyrus.infra.ui/src/org/eclipse/papyrus/infra/ui/editor/CoreMultiDiagramEditor.java
+++ b/plugins/infra/ui/org.eclipse.papyrus.infra.ui/src/org/eclipse/papyrus/infra/ui/editor/CoreMultiDiagramEditor.java
@@ -20,6 +20,7 @@ package org.eclipse.papyrus.infra.ui.editor;
import static org.eclipse.papyrus.infra.core.Activator.log;
+import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
@@ -614,7 +615,7 @@ public class CoreMultiDiagramEditor extends AbstractMultiPageSashEditor implemen
servicesRegistry.startRegistry();
// In case of a shard
- String name = uri.lastSegment();
+ String name = java.net.URLDecoder.decode(uri.lastSegment(), "UTF-8");
if (!name.equals(getPartName())) {
setPartName(name);
}
@@ -631,6 +632,8 @@ public class CoreMultiDiagramEditor extends AbstractMultiPageSashEditor implemen
} catch (ServiceException e) {
log.error(e);
// throw new PartInitException("could not initialize services", e);
+ } catch (UnsupportedEncodingException e) {
+ log.error(e);
}
// Get required services

Back to the top