diff options
author | cletavernie | 2013-05-06 12:30:48 +0000 |
---|---|---|
committer | cletavernie | 2013-05-06 12:30:48 +0000 |
commit | 81634042582c88ef2b37e65fe06644f61f438030 (patch) | |
tree | 54baed8f86ec4d5dd48a85511626f9e8f12be24a | |
parent | 43306039380dd194cd28ff22fe44715e38fa662b (diff) | |
download | org.eclipse.papyrus-81634042582c88ef2b37e65fe06644f61f438030.tar.gz org.eclipse.papyrus-81634042582c88ef2b37e65fe06644f61f438030.tar.xz org.eclipse.papyrus-81634042582c88ef2b37e65fe06644f61f438030.zip |
407060: Can not load & edit existing profiles as Papyrus profile models.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=407060
-rw-r--r-- | plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/NewModelFilePage.java | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/NewModelFilePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/NewModelFilePage.java index 10a41be6c6d..ac8198925e3 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/NewModelFilePage.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/NewModelFilePage.java @@ -55,10 +55,13 @@ public class NewModelFilePage extends WizardNewFileCreationPage { /** * Instantiates a new new model file page. - * - * @param pageId the page id - * @param selection the selection - * @param modelKindName the kind of model to be created (translatable) + * + * @param pageId + * the page id + * @param selection + * the selection + * @param modelKindName + * the kind of model to be created (translatable) */ public NewModelFilePage(String pageId, IStructuredSelection selection, String modelKindName) { super(pageId, selection); @@ -69,9 +72,9 @@ public class NewModelFilePage extends WizardNewFileCreationPage { /** * Creates the control. - * - * @param parent the parent - * {@inheritDoc} + * + * @param parent + * the parent {@inheritDoc} */ @Override public void createControl(Composite parent) { @@ -82,8 +85,9 @@ public class NewModelFilePage extends WizardNewFileCreationPage { /** * Diagram extension changed. - * - * @param newExtension the new extension + * + * @param newExtension + * the new extension * @return the i status */ public IStatus diagramExtensionChanged(String newExtension) { @@ -153,4 +157,20 @@ public class NewModelFilePage extends WizardNewFileCreationPage { return filePath.lastSegment(); } + @Override + protected void createAdvancedControls(Composite parent) { + //Nothing: the standard "createAdvancedControls" method adds an option to "Link to file in the file system". + //It is not properly integrated with Papyrus (Which creates 3 different files, and only one of them is actually linked to the file system) + } + + @Override + protected IStatus validateLinkedResource() { + return Status.OK_STATUS; //Disable this method to avoid NPE (Because we override #createAdvancedControls) + } + + @Override + protected void createLinkTarget() { + //Disable this method to avoid NPE (Because we override #createAdvancedControls) + } + } |