Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauricio Alferez2015-10-14 11:25:15 +0000
committerGerrit Code Review @ Eclipse.org2015-10-14 14:06:54 +0000
commit5777188af035911c163446d222ff14ffed7c0873 (patch)
tree2909ba79d5856e998d93ccfef82d5e0316f03b96
parent2f35584246c1ecb282ea3257c6ab7e5d471763c4 (diff)
downloadorg.eclipse.papyrus-5777188af035911c163446d222ff14ffed7c0873.tar.gz
org.eclipse.papyrus-5777188af035911c163446d222ff14ffed7c0873.tar.xz
org.eclipse.papyrus-5777188af035911c163446d222ff14ffed7c0873.zip
Bug 479713 - [Extra plugin][Req][BMM] BMM shall provide a wizard to
create models and projects Change-Id: I30a79c315453bbc666d402d702e55139cba83763 Signed-off-by: Mauricio Alferez <mauricio.alferez@cea.fr>
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/META-INF/MANIFEST.MF11
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/build.properties12
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_32x32.pngbin0 -> 835 bytes
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_64x64.pngbin0 -> 1539 bytes
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/plugin.xml10
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/src/org/eclipse/papyrus/req/bmm/diagram/common/commands/CreateBmmModelCommand.java74
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/.classpath7
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/.project28
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/META-INF/MANIFEST.MF17
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/about.html28
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/build.properties9
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/plugin.properties7
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/plugin.xml42
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/Activator.java65
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmModelWizard.java61
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmProjectWizard.java60
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/bundle.properties2
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/src/org/eclipse/papyrus/req/bmm/diagram/Activator.java15
18 files changed, 441 insertions, 7 deletions
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/META-INF/MANIFEST.MF b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/META-INF/MANIFEST.MF
index 48dec93bdf6..bd97d331b4c 100644
--- a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/META-INF/MANIFEST.MF
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/META-INF/MANIFEST.MF
@@ -3,13 +3,16 @@ Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.eclipse.papyrus.req.bmm.diagram.common;singleton:=true
Bundle-Version: 0.7.0.qualifier
Bundle-Activator: org.eclipse.papyrus.req.bmm.diagram.common.Activator
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
+Require-Bundle: org.eclipse.papyrus.uml.tools.utils,
+ org.eclipse.papyrus.req.bmm;bundle-version="0.7.0",
org.eclipse.papyrus.uml.diagram.common,
- org.eclipse.papyrus.req.bmm;bundle-version="0.7.0"
+ org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.papyrus.infra.core;bundle-version="1.2.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ActivationPolicy: lazy
Bundle-Vendor: %Bundle-Vendor
Bundle-Name: %Bundle-Name
-Export-Package: org.eclipse.papyrus.req.bmm.diagram.common
+Export-Package: org.eclipse.papyrus.req.bmm.diagram.common,
+ org.eclipse.papyrus.req.bmm.diagram.common.commands
Bundle-Localization: bundle
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/build.properties b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/build.properties
index 4c8e201c0e0..ab4dbb6d502 100644
--- a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/build.properties
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/build.properties
@@ -4,9 +4,17 @@ bin.includes = META-INF/,\
.,\
bundle.properties,\
about.html,\
- plugin.xml
+ plugin.xml,\
+ icons/,\
+ css/,\
+ bin/,\
+ build.properties,\
+ palette/,\
+ shapes/
src.includes = about.html,\
css/,\
icons/,\
palette/,\
- shapes/
+ shapes/,\
+ build.properties,\
+ bundle.properties
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_32x32.png b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_32x32.png
new file mode 100644
index 00000000000..1c4a390fc19
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_32x32.png
Binary files differ
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_64x64.png b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_64x64.png
new file mode 100644
index 00000000000..f6a8875039f
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_64x64.png
Binary files differ
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/plugin.xml b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/plugin.xml
index 104f89a3f8a..ba4886eccce 100644
--- a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/plugin.xml
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/plugin.xml
@@ -16,5 +16,15 @@
</editor>
</paletteDefinition>
</extension>
+ <extension
+ point="org.eclipse.papyrus.infra.core.papyrusDiagram">
+ <diagramCategory
+ class="org.eclipse.papyrus.req.bmm.diagram.common.commands.CreateBmmModelCommand"
+ description="Papyrus BMM diagrams"
+ icon="platform:/plugin/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_32x32.png"
+ id="BMM"
+ label="BMM">
+ </diagramCategory>
+ </extension>
</plugin>
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/src/org/eclipse/papyrus/req/bmm/diagram/common/commands/CreateBmmModelCommand.java b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/src/org/eclipse/papyrus/req/bmm/diagram/common/commands/CreateBmmModelCommand.java
new file mode 100644
index 00000000000..bc06464d536
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.common/src/org/eclipse/papyrus/req/bmm/diagram/common/commands/CreateBmmModelCommand.java
@@ -0,0 +1,74 @@
+/*****************************************************************************
+ * 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:
+ * Mauricio Alferez (CEA LIST) mauricio.alferez@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.req.bmm.diagram.common.commands;
+
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.uml.diagram.common.commands.ModelCreationCommandBase;
+import org.eclipse.papyrus.uml.tools.utils.PackageUtil;
+import org.eclipse.uml2.uml.Profile;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * Creates a BMM model
+ *
+ */
+public class CreateBmmModelCommand extends ModelCreationCommandBase {
+
+ public static final String COMMAND_ID = "BMM";
+
+
+
+ public static final String PROFILES_PATHMAP = "pathmap://BMM_PROFILE/"; //$NON-NLS-1$
+
+
+ public static final String BMM_PROFILE_URI = PROFILES_PATHMAP + "Bmm.profile.uml"; //$NON-NLS-1$
+
+ /**
+ * @see org.eclipse.papyrus.core.extension.commands.ModelCreationCommandBase#createRootElement()
+ *
+ * @return
+ */
+
+ @Override
+ protected EObject createRootElement() {
+ return UMLFactory.eINSTANCE.createModel();
+ }
+
+ /**
+ * @see org.eclipse.papyrus.core.extension.commands.ModelCreationCommandBase#initializeModel(org.eclipse.emf.ecore.EObject)
+ *
+ * @param owner
+ */
+
+ @Override
+ protected void initializeModel(EObject owner) {
+ super.initializeModel(owner);
+ ((org.eclipse.uml2.uml.Package) owner).setName(getModelName());
+
+ org.eclipse.uml2.uml.Package bmmProfile = PackageUtil.loadPackage(URI.createURI(BMM_PROFILE_URI), owner.eResource().getResourceSet());
+ if ((bmmProfile != null) && (bmmProfile instanceof Profile)) {
+ PackageUtil.applyProfile(((org.eclipse.uml2.uml.Package) owner), (org.eclipse.uml2.uml.Profile) bmmProfile, true);
+ }
+ }
+
+ /**
+ * Gets the model name.
+ *
+ * @return the model name
+ */
+ protected String getModelName() {
+ return "PapyrusBMMModel";
+ }
+
+
+}
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/.classpath b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/.classpath
new file mode 100644
index 00000000000..098194ca4b7
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/.project b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/.project
new file mode 100644
index 00000000000..c4784f77761
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.req.bmm.diagram.ui</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/META-INF/MANIFEST.MF b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..7024eec76b8
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,17 @@
+Manifest-Version: 1.0
+Require-Bundle: org.eclipse.ui;bundle-version="3.107.0",
+ org.eclipse.ui.ide;bundle-version="3.11.0",
+ org.eclipse.papyrus.uml.diagram.wizards;bundle-version="1.2.0",
+ org.eclipse.papyrus.req.bmm;bundle-version="0.7.0",
+ org.eclipse.papyrus.req.bmm.diagram.common;bundle-version="0.7.0"
+Export-Package: org.eclipse.papyrus.req.bmm.diagram.ui
+Bundle-Vendor: %Bundle-Vendor
+Bundle-ActivationPolicy: lazy
+Bundle-Version: 0.7.0.qualifier
+Bundle-Name: %Bundle-Name
+Bundle-Localization: plugin
+Bundle-ManifestVersion: 2
+Bundle-Activator: org.eclipse.papyrus.req.bmm.diagram.ui.Activator
+Bundle-SymbolicName: org.eclipse.papyrus.req.bmm.diagram.ui;singleton:=true
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Import-Package: org.eclipse.papyrus.req.bmm.diagram.common.commands
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/about.html b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/about.html
new file mode 100644
index 00000000000..d35d5aed64c
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/about.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2007</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/build.properties b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/build.properties
new file mode 100644
index 00000000000..eee1808b4fc
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/build.properties
@@ -0,0 +1,9 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ plugin.properties,\
+ about.html,\
+ model/
+src.includes = about.html
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/plugin.properties b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/plugin.properties
new file mode 100644
index 00000000000..f63afb69da9
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/plugin.properties
@@ -0,0 +1,7 @@
+#Properties file for org.eclipse.papyrus.req.bmm.diagram.ui
+Bundle-Vendor = Eclipse Modeling Project
+Bundle-Name = UI for creation of BMM models (Incubation)
+wizard.name = Papyrus BMM Model
+wizard.name.0 = Papyrus BMM Project
+wizard.description = New BMM Project
+#extension.name = New BMM Child \ No newline at end of file
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/plugin.xml b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/plugin.xml
new file mode 100644
index 00000000000..b029fcbb65f
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/plugin.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.newWizards">
+ <wizard
+ canFinishEarly="false"
+ category="org.eclipse.papyrus.wizards.category"
+ class="org.eclipse.papyrus.req.bmm.diagram.ui.NewBmmModelWizard"
+ finalPerspective="org.eclipse.papyrus.infra.core.perspective"
+ icon="platform:/plugin/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_32x32.png"
+ id="org.eclipse.papyrus.wizards.createbmmmodel"
+ name="%wizard.name">
+ <selection
+ class="org.eclipse.core.resources.IResource">
+ </selection>
+ </wizard>
+ <wizard
+ category="org.eclipse.papyrus.wizards.category"
+ class="org.eclipse.papyrus.req.bmm.diagram.ui.NewBmmProjectWizard"
+ finalPerspective="org.eclipse.papyrus.infra.core.perspective"
+ icon="platform:/plugin/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_32x32.png"
+ id="org.eclipse.papyrus.wizards.createbmmwizard"
+ name="%wizard.name.0"
+ project="true">
+ <description>
+ %wizard.description
+ </description>
+ </wizard>
+ </extension>
+ <!--
+ <extension
+ point="org.eclipse.papyrus.uml.diagram.wizards.templates">
+ <template
+ file="org.eclipse.papyrus.req.bmm.diagram.ui.template1"
+ id="org.eclipse.papyrus.req.bmm.diagram.ui.template1"
+ language="org.eclipse.papyrus.req.bmm.diagram.ui.template1"
+ name="Empty Process BMM Model">
+ </template>
+ </extension>
+ -->
+</plugin>
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/Activator.java b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/Activator.java
new file mode 100644
index 00000000000..10eadd9b48f
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/Activator.java
@@ -0,0 +1,65 @@
+/*****************************************************************************
+ * 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:
+ * Mauricio Alferez (CEA LIST) mauricio.alferez@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.req.bmm.diagram.ui;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.req.bmm.diagram.ui"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmModelWizard.java b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmModelWizard.java
new file mode 100644
index 00000000000..2b5783f3e0d
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmModelWizard.java
@@ -0,0 +1,61 @@
+/*****************************************************************************
+ * 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:
+ *
+ * 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.CreateModelWizard;
+import org.eclipse.ui.IWorkbench;
+
+/**
+ * Wizard to create a new Business Motivation (BMM) model
+ *
+ */
+public class NewBmmModelWizard 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 BMM Model");
+ }
+
+ /**
+ * Instantiates a new new Proteus model wizard.
+ */
+ public NewBmmModelWizard() {
+ super();
+
+ }
+
+ @Override
+ public String getModelKindName() {
+ // TODO Auto-generated method stub
+
+ return "BMM Model";
+ }
+
+ @Override
+ protected String[] getDiagramCategoryIds() {
+ return new String[] { CreateBmmModelCommand.COMMAND_ID };
+ }
+
+}
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram.ui/src/org/eclipse/papyrus/req/bmm/diagram/ui/NewBmmProjectWizard.java b/extraplugins/req/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/req/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 };
+ }
+
+}
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/bundle.properties b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/bundle.properties
index 7f89def8801..d6e4b8b40b1 100644
--- a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/bundle.properties
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/bundle.properties
@@ -1,3 +1,3 @@
#Properties file for org.eclipse.papyrus.req.bmm.diagram
-Bundle-Name = BMM diagram base
+Bundle-Name = BMM diagram base (Incubation)
Bundle-Vendor = Eclipse Modeling Project \ No newline at end of file
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/src/org/eclipse/papyrus/req/bmm/diagram/Activator.java b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/src/org/eclipse/papyrus/req/bmm/diagram/Activator.java
index 018d8abe8a0..6773a367236 100644
--- a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/src/org/eclipse/papyrus/req/bmm/diagram/Activator.java
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/src/org/eclipse/papyrus/req/bmm/diagram/Activator.java
@@ -1,3 +1,18 @@
+/*****************************************************************************
+ * 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:
+ *
+ * Mauricio Alferez (mauriçio.alferez@cea.fr) CEA LIST - Initial API and implementation
+ *
+ * *******************************************************************************/
+
package org.eclipse.papyrus.req.bmm.diagram;
import org.eclipse.ui.plugin.AbstractUIPlugin;

Back to the top