Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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