Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauricio Alferez2015-10-14 08:30:21 +0000
committerMauricio Alferez2015-10-14 08:30:21 +0000
commit2ed5000fc4a1d6fcac3cd538160802930b4470fc (patch)
treea8d523f2dc9ca73ce7b96d65a595982f7ab3fa4f
parentc6f96fe710cd931cd0d3b7f9767f9ab42aea726b (diff)
downloadorg.eclipse.papyrus-2ed5000fc4a1d6fcac3cd538160802930b4470fc.tar.gz
org.eclipse.papyrus-2ed5000fc4a1d6fcac3cd538160802930b4470fc.tar.xz
org.eclipse.papyrus-2ed5000fc4a1d6fcac3cd538160802930b4470fc.zip
Bug 479714 - [Extra plugin][Req][BMM] BMM shall provide a Viewpoint
mechanism Change-Id: I9df41dacb0b210d24d262a2c5d671b2ad989410d Signed-off-by: Mauricio Alferez <mauricio.alferez@cea.fr>
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/.classpath7
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/.project28
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/META-INF/MANIFEST.MF30
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/about.html28
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/build.properties11
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/bundle.properties3
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/plugin.xml11
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/src/org/eclipse/papyrus/req/bmm/diagram/Activator.java50
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/viewpoints/bmm.configuration18
9 files changed, 186 insertions, 0 deletions
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/.classpath b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/.classpath
new file mode 100644
index 00000000000..098194ca4b7
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/.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/.project b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/.project
new file mode 100644
index 00000000000..276f292401b
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.req.bmm.diagram</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/META-INF/MANIFEST.MF b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..353e50b319d
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/META-INF/MANIFEST.MF
@@ -0,0 +1,30 @@
+Manifest-Version: 1.0
+Export-Package: org.eclipse.papyrus.req.bmm.diagram
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.2.0",
+ org.eclipse.papyrus.uml.tools.utils;bundle-version="1.2.0",
+ org.eclipse.papyrus.uml.diagram.common;bundle-version="1.2.0",
+ org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.2.0",
+ org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.2.0",
+ org.eclipse.papyrus.uml.diagram.composite;bundle-version="1.2.0",
+ org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0",
+ org.eclipse.papyrus.uml.tools;bundle-version="1.2.0",
+ org.eclipse.papyrus.uml.diagram.communication;bundle-version="1.2.0",
+ org.eclipse.papyrus.uml.diagram.clazz;bundle-version="1.2.0",
+ org.eclipse.papyrus.uml.diagram.activity;bundle-version="1.2.0",
+ org.eclipse.papyrus.uml.tools.extendedtypes;bundle-version="1.2.0",
+ org.eclipse.gmf.tooling.runtime;bundle-version="3.2.0",
+ org.eclipse.papyrus.infra.core;bundle-version="1.2.0",
+ org.eclipse.gmf.runtime.diagram.core,
+ org.eclipse.papyrus.req.bmm;bundle-version="0.7.0",
+ org.eclipse.papyrus.req.bmm.diagram.common;bundle-version="0.7.0"
+Bundle-Vendor: %Bundle-Vendor
+Bundle-ActivationPolicy: lazy
+Bundle-Version: 0.7.0.qualifier
+Bundle-Name: %Bundle-Name
+Bundle-Activator: org.eclipse.papyrus.req.bmm.diagram.Activator
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: org.eclipse.papyrus.req.bmm.diagram;singleton:=true
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-Localization: bundle
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/about.html b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/about.html
new file mode 100644
index 00000000000..d35d5aed64c
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/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/build.properties b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/build.properties
new file mode 100644
index 00000000000..84b58fe164e
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/build.properties
@@ -0,0 +1,11 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ viewpoints/,\
+ bundle.properties,\
+ about.html
+src.includes = viewpoints/,\
+ bundle.properties,\
+ about.html
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/bundle.properties b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/bundle.properties
new file mode 100644
index 00000000000..7f89def8801
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/bundle.properties
@@ -0,0 +1,3 @@
+#Properties file for org.eclipse.papyrus.req.bmm.diagram
+Bundle-Name = BMM diagram base
+Bundle-Vendor = Eclipse Modeling Project \ No newline at end of file
diff --git a/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/plugin.xml b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/plugin.xml
new file mode 100644
index 00000000000..33fd2c4661a
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/plugin.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.papyrus.infra.viewpoints.policy.custom">
+ <contribution
+ file="viewpoints/bmm.configuration"
+ original="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration">
+ </contribution>
+ </extension>
+</plugin>
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
new file mode 100644
index 00000000000..018d8abe8a0
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/src/org/eclipse/papyrus/req/bmm/diagram/Activator.java
@@ -0,0 +1,50 @@
+package org.eclipse.papyrus.req.bmm.diagram;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.req.bmm.diagram"; //$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)
+ */
+ 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)
+ */
+ 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/viewpoints/bmm.configuration b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/viewpoints/bmm.configuration
new file mode 100644
index 00000000000..f15421860c4
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.bmm.diagram/viewpoints/bmm.configuration
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration:PapyrusConfiguration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmi:id="_kG3MQHHxEeWwUO0bdYttAA" defaultStakeholder="_5OhigHHxEeWwUO0bdYttAA">
+ <stakeholders xmi:id="_5OhigHHxEeWwUO0bdYttAA" name="Business Analyst" viewpoints="_9mvf8HHxEeWwUO0bdYttAA"/>
+ <viewpoints xsi:type="configuration:PapyrusViewpoint" xmi:id="_9mvf8HHxEeWwUO0bdYttAA" name="Default Papyrus Viewpoint">
+ <modelKinds xsi:type="configuration:PapyrusDiagram" xmi:id="_A483kHHyEeWwUO0bdYttAA" name="BMM Diagram" icon="platform:/plugin/org.eclipse.papyrus.req.bmm.diagram.common/icons/bmm_16x16.png" implementationID="PapyrusUMLDeploymentDiagram" categories="_F_J8YHHyEeWwUO0bdYttAA" customStyle="platform:/plugin/org.eclipse.papyrus.req.bmm.diagram.common/css/BmmStyle.css">
+ <modelRules xmi:id="_3Fu_IHHzEeWwUO0bdYttAA">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Model"/>
+ </modelRules>
+ <owningRules xmi:id="_-K310HHzEeWwUO0bdYttAA">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Model"/>
+ </owningRules>
+ <childRules xmi:id="__dU8MHHzEeWwUO0bdYttAA"/>
+ <paletteRules xmi:id="_AKSv4HH0EeWwUO0bdYttAA" element="*"/>
+ </modelKinds>
+ </viewpoints>
+ <metamodel href="http://www.eclipse.org/uml2/5.0.0/UML#/"/>
+ <categories xmi:id="_F_J8YHHyEeWwUO0bdYttAA" name="BMM"/>
+</configuration:PapyrusConfiguration>

Back to the top