Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Le Menez2015-12-01 14:41:47 +0000
committerGerrit Code Review @ Eclipse.org2016-05-19 09:03:15 +0000
commitc8a86f51bf38f568802df3034b120a26f726039f (patch)
tree60626d4dac4e46a0c707cf20a1d7ddc016678f6c /plugins/uml
parentbc0abb2abdfefeade4581e11967008275c9fc5a5 (diff)
downloadorg.eclipse.papyrus-c8a86f51bf38f568802df3034b120a26f726039f.tar.gz
org.eclipse.papyrus-c8a86f51bf38f568802df3034b120a26f726039f.tar.xz
org.eclipse.papyrus-c8a86f51bf38f568802df3034b120a26f726039f.zip
Bug 483100: Profile application in Create new model Wizard gives corrupt .uml model file
https://bugs.eclipse.org/bugs/show_bug.cgi?id=483100 - Corrected a missing URI encoding Signed-off-by: Quentin Le Menez <quentin.lemenez@cea.fr>
Diffstat (limited to 'plugins/uml')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/wizards/CreateModelWizard.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/wizards/CreateModelWizard.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/wizards/CreateModelWizard.java
index e3220c3fe3b..f7184edeb4d 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/wizards/CreateModelWizard.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/wizards/CreateModelWizard.java
@@ -472,8 +472,9 @@ public class CreateModelWizard extends Wizard implements INewWizard {
protected void applyProfile(ModelSet modelSet) {
String profilePath = selectDiagramKindPage.getProfileURI();
+
ResourceSet resourceSet = new ResourceSetImpl();
- Resource resource = resourceSet.getResource(URI.createURI(profilePath), true);
+ Resource resource = resourceSet.getResource(URI.createPlatformResourceURI(profilePath, true), true);
Profile profile = (Profile) resource.getContents().get(0);
Resource myModelUMLResource = UmlUtils.getUmlResource(modelSet);

Back to the top