Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/bmm/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmProjectWizard.java')
-rw-r--r--extraplugins/bmm/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmProjectWizard.java60
1 files changed, 60 insertions, 0 deletions
diff --git a/extraplugins/bmm/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmProjectWizard.java b/extraplugins/bmm/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmProjectWizard.java
new file mode 100644
index 00000000000..f50263c6b53
--- /dev/null
+++ b/extraplugins/bmm/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmProjectWizard.java
@@ -0,0 +1,60 @@
+/*****************************************************************************
+ * Copyright (c) 2013 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:
+ *
+ * Mauricio Alferez (CEA LIST) mauricio.alferez@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.req.bmm.diagram.ui;
+
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.req.bmm.diagram.common.commands.CreateBmmModelCommand;
+import org.eclipse.papyrus.uml.diagram.wizards.NewPapyrusProjectWizard;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
+
+/**
+ * Wizard to create a new BMM project
+ *
+ */
+public class NewBmmProjectWizard 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 BMM Project");
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected WizardNewProjectCreationPage createNewProjectCreationPage() {
+ WizardNewProjectCreationPage newProjectPage = super.createNewProjectCreationPage();
+ newProjectPage.setTitle("Papyrus BMM Project");
+ newProjectPage.setDescription("Create a New Papyrus BMM Project");
+ return newProjectPage;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected String[] getDiagramCategoryIds() {
+ return new String[] { CreateBmmModelCommand.COMMAND_ID };
+ }
+
+}

Back to the top