diff options
Diffstat (limited to 'extraplugins/soaml')
2 files changed, 144 insertions, 149 deletions
diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlModelWizard.java b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlModelWizard.java index 5db94f3d54d..3e9901816e5 100644 --- a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlModelWizard.java +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlModelWizard.java @@ -1,76 +1,73 @@ -/*****************************************************************************
- * Copyright (c) 2015 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Fadwa TMAR (CEA LIST) fadwa.tmar@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.soaml.diagram.ui;
-
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.soaml.diagram.common.commands.CreateSoamlModelCommand;
-import org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard;
-
-import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramCategoryPage;
-import org.eclipse.ui.IWorkbench;
-
-public class NewSoamlModelWizard extends CreateModelWizard {
-
- /**
- * @see org.eclipse.papyrus.wizards.CreateModelWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
- *
- * @param workbench
- * @param selection
- */
-
- @Override
- public void init(IWorkbench workbench, IStructuredSelection selection) {
- super.init(workbench, selection);
- setWindowTitle("New SoaML Model");
- }
-
- /**
- * Instantiates a new new Proteus model wizard.
- */
- public NewSoamlModelWizard() {
- super();
-
- }
-
-
-
- @Override
- public String getModelKindName() {
- // TODO Auto-generated method stub
-
- return "SoaML Model";
- }
-
- @Override
- protected String[] getDiagramCategoryIds() {
- return new String[]{ CreateSoamlModelCommand.COMMAND_ID };
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected SelectDiagramCategoryPage createSelectDiagramCategoryPage() {
- // here SoaML is the only available category
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected void saveDiagramCategorySettings() {
- // here SoaML is the only available category
- }
-
-}
+/***************************************************************************** + * Copyright (c) 2015 CEA LIST. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Fadwa TMAR (CEA LIST) fadwa.tmar@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.soaml.diagram.ui; + + +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.papyrus.soaml.diagram.common.commands.CreateSoamlModelCommand; +import org.eclipse.papyrus.uml.diagram.wizards.CreateModelWizard; + +import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramCategoryPage; +import org.eclipse.ui.IWorkbench; + +public class NewSoamlModelWizard extends CreateModelWizard { + + /** + * @see org.eclipse.papyrus.wizards.CreateModelWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection) + * + * @param workbench + * @param selection + */ + + @Override + public void init(IWorkbench workbench, IStructuredSelection selection) { + super.init(workbench, selection); + setWindowTitle("New SoaML Model"); + } + + /** + * Instantiates a new new Proteus model wizard. + */ + public NewSoamlModelWizard() { + super(); + } + + + + @Override + public String getModelKindName() { + return "SoaML Model"; //$NON-NLS-1$ + } + + @Override + protected String[] getDiagramCategoryIds() { + return new String[]{ CreateSoamlModelCommand.COMMAND_ID }; + } + + /** + * {@inheritDoc} + */ + @Override + protected SelectDiagramCategoryPage createSelectDiagramCategoryPage() { + // here SoaML is the only available category + return null; + } + + /** + * {@inheritDoc} + */ + @Override + protected void saveDiagramCategorySettings() { + // here SoaML is the only available category + } + +} diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlProjectWizard.java b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlProjectWizard.java index 5f983ff6111..859ecfd0b51 100644 --- a/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlProjectWizard.java +++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.diagram.ui/src/org/eclipse/papyrus/soaml/diagram/ui/NewSoamlProjectWizard.java @@ -1,73 +1,71 @@ -/*****************************************************************************
- * Copyright (c) 2015 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Fadwa TMAR (CEA LIST) fadwa.tmar@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.soaml.diagram.ui;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.soaml.diagram.common.commands.CreateSoamlModelCommand;
-import org.eclipse.papyrus.uml.diagram.wizards.NewPapyrusProjectWizard;
-import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramCategoryPage;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
-
-public class NewSoamlProjectWizard extends NewPapyrusProjectWizard {
-
- /**
- * @see org.eclipse.papyrus.wizards.NewPapyrusProjectWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
- *
- * @param workbench
- * @param selection
- */
- @Override
- public void init(IWorkbench workbench, IStructuredSelection selection) {
- super.init(workbench, selection);
- setWindowTitle("New SoaML Project");
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected WizardNewProjectCreationPage createNewProjectCreationPage() {
- WizardNewProjectCreationPage newProjectPage = super.createNewProjectCreationPage();
- newProjectPage.setTitle("Papyrus SoaML Project");
- newProjectPage.setDescription("Create a New Papyrus SoaML Project");
- return newProjectPage;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected SelectDiagramCategoryPage createSelectDiagramCategoryPage() {
- //here SysML is the only available category
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected void saveDiagramCategorySettings() {
- //do nothing
- //here SysML is the only available category
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected String[] getDiagramCategoryIds() {
- return new String[]{ CreateSoamlModelCommand.COMMAND_ID };
- }
-
-
-}
+/***************************************************************************** + * Copyright (c) 2015 CEA LIST. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Fadwa TMAR (CEA LIST) fadwa.tmar@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.soaml.diagram.ui; + +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.papyrus.soaml.diagram.common.commands.CreateSoamlModelCommand; +import org.eclipse.papyrus.uml.diagram.wizards.NewPapyrusProjectWizard; +import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramCategoryPage; +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.dialogs.WizardNewProjectCreationPage; + +public class NewSoamlProjectWizard extends NewPapyrusProjectWizard { + + /** + * @see org.eclipse.papyrus.wizards.NewPapyrusProjectWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection) + * + * @param workbench + * @param selection + */ + @Override + public void init(IWorkbench workbench, IStructuredSelection selection) { + super.init(workbench, selection); + setWindowTitle("New SoaML Project"); + } + + /** + * {@inheritDoc} + */ + @Override + protected WizardNewProjectCreationPage createNewProjectCreationPage() { + WizardNewProjectCreationPage newProjectPage = super.createNewProjectCreationPage(); + newProjectPage.setTitle("Papyrus SoaML Project"); + newProjectPage.setDescription("Create a New Papyrus SoaML Project"); + return newProjectPage; + } + + /** + * {@inheritDoc} + */ + @Override + protected SelectDiagramCategoryPage createSelectDiagramCategoryPage() { + return null; + } + + /** + * {@inheritDoc} + */ + @Override + protected void saveDiagramCategorySettings() { + //do nothing + } + + /** + * {@inheritDoc} + */ + @Override + protected String[] getDiagramCategoryIds() { + return new String[]{ CreateSoamlModelCommand.COMMAND_ID }; + } + + +} |