diff options
Diffstat (limited to 'plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLProjectWizard.java')
-rw-r--r-- | plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLProjectWizard.java | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLProjectWizard.java b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLProjectWizard.java index 532563db33b..1d868b8406f 100644 --- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLProjectWizard.java +++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui/src/org/eclipse/papyrus/sysml/diagram/ui/NewSysMLProjectWizard.java @@ -1,80 +1,80 @@ -/*****************************************************************************
- * Copyright (c) 2010 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:
- * Tatiana Fesenko (CEA LIST) - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.diagram.ui;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.sysml.diagram.common.commands.CreateSysMLModelCommand;
-import org.eclipse.papyrus.uml.diagram.wizards.wizards.NewPapyrusProjectWizard;
-import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramCategoryPage;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
-
-
-/**
- * The Class NewSysMLProjectWizard.
- */
-public class NewSysMLProjectWizard extends NewPapyrusProjectWizard {
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void init(IWorkbench workbench, IStructuredSelection selection) {
- super.init(workbench, selection);
- setWindowTitle("New SysML Project");
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected WizardNewProjectCreationPage createNewProjectCreationPage() {
- WizardNewProjectCreationPage newProjectPage = super.createNewProjectCreationPage();
- newProjectPage.setTitle("Papyrus SysML Project");
- newProjectPage.setDescription("Create a New Papyrus SysML 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[]{ CreateSysMLModelCommand.COMMAND_ID };
- }
-
- @Override
- public boolean isPapyrusRootWizard() {
+/***************************************************************************** + * Copyright (c) 2010 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: + * Tatiana Fesenko (CEA LIST) - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.diagram.ui; + +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.papyrus.sysml.architecture.SysMLArchitectureContextIds; +import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectArchitectureContextPage; +import org.eclipse.papyrus.uml.diagram.wizards.wizards.NewPapyrusProjectWizard; +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.dialogs.WizardNewProjectCreationPage; + + +/** + * The Class NewSysMLProjectWizard. + */ +public class NewSysMLProjectWizard extends NewPapyrusProjectWizard { + + /** + * {@inheritDoc} + */ + @Override + public void init(IWorkbench workbench, IStructuredSelection selection) { + super.init(workbench, selection); + setWindowTitle("New SysML Project"); + } + + /** + * {@inheritDoc} + */ + @Override + protected WizardNewProjectCreationPage createNewProjectCreationPage() { + WizardNewProjectCreationPage newProjectPage = super.createNewProjectCreationPage(); + newProjectPage.setTitle("Papyrus SysML Project"); + newProjectPage.setDescription("Create a New Papyrus SysML Project"); + return newProjectPage; + } + + /** + * {@inheritDoc} + */ + @Override + protected SelectArchitectureContextPage createSelectArchitectureContextPage() { + // 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[] getSelectedContexts() { + return new String[] { SysMLArchitectureContextIds.SysML }; + } + + @Override + public boolean isPapyrusRootWizard() { return false; - }
-
-}
+ } + +} |