From 223f7c5746ec20342655bbbfcf02873f964c3711 Mon Sep 17 00:00:00 2001 From: Benoit Maggi Date: Thu, 22 Jan 2015 14:22:43 +0100 Subject: Bug 440082 - [SysML] Support for SysML 1.4 - init parametric and internal block diagram - unify BDD,IBD and parametric with the same conventions (diagram name, palette name) Change-Id: If3a23d03bb3069c508e4c57c28e43c6f50703ef9 Signed-off-by: Benoit Maggi --- .../BlockDefinitionDiagram.configuration | 2 +- .../resources/palette/blockDiagramPalette.xml | 166 +++++++++++++++++++++ .../resources/palette/sysmlBlockDiagram.palette | 166 --------------------- .../.classpath | 7 + .../.project | 28 ++++ .../.settings/org.eclipse.jdt.core.prefs | 7 + .../META-INF/MANIFEST.MF | 20 +++ .../about.html | 28 ++++ .../build.properties | 7 + .../plugin.xml | 11 ++ .../pom.xml | 14 ++ .../InternalBlockDiagram.configuration | 20 +++ .../palette/internalBlockDiagramPalette.xml | 73 +++++++++ .../sysml14/diagram/internalblock/Activator.java | 73 +++++++++ .../.classpath | 7 + .../.project | 28 ++++ .../.settings/org.eclipse.jdt.core.prefs | 7 + .../META-INF/MANIFEST.MF | 20 +++ .../about.html | 28 ++++ .../build.properties | 7 + .../plugin.xml | 11 ++ .../pom.xml | 14 ++ .../configuration/ParametricDiagram.configuration | 20 +++ .../resources/palette/parametricDiagramPalette.xml | 70 +++++++++ .../sysml14/diagram/parametric/Activator.java | 73 +++++++++ 25 files changed, 740 insertions(+), 167 deletions(-) create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagramPalette.xml delete mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/sysmlBlockDiagram.palette create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.classpath create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.project create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/META-INF/MANIFEST.MF create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/about.html create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/build.properties create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/plugin.xml create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/pom.xml create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/resources/configuration/InternalBlockDiagram.configuration create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/resources/palette/internalBlockDiagramPalette.xml create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/src/org/eclipse/papyrus/sysml14/diagram/internalblock/Activator.java create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.classpath create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.project create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/META-INF/MANIFEST.MF create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/about.html create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/build.properties create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/plugin.xml create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/pom.xml create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/resources/configuration/ParametricDiagram.configuration create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/resources/palette/parametricDiagramPalette.xml create mode 100644 plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/src/org/eclipse/papyrus/sysml14/diagram/parametric/Activator.java (limited to 'plugins') diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/BlockDefinitionDiagram.configuration b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/BlockDefinitionDiagram.configuration index bd17be795b1..425389ede83 100644 --- a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/BlockDefinitionDiagram.configuration +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/BlockDefinitionDiagram.configuration @@ -1,7 +1,7 @@ - + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagramPalette.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagramPalette.xml new file mode 100644 index 00000000000..643ec927dd0 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagramPalette.xml @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/sysmlBlockDiagram.palette b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/sysmlBlockDiagram.palette deleted file mode 100644 index 22536f400a8..00000000000 --- a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/sysmlBlockDiagram.palette +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.classpath b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.classpath new file mode 100644 index 00000000000..ad32c83a788 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.project b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.project new file mode 100644 index 00000000000..752f0331ac8 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.sysml14.diagram.internalblock + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.settings/org.eclipse.jdt.core.prefs b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..c537b63063c --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/META-INF/MANIFEST.MF b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..4a00296925c --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/META-INF/MANIFEST.MF @@ -0,0 +1,20 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: BDD1.4 Configuration for Papyrus +Bundle-SymbolicName: org.eclipse.papyrus.sysml14.diagram.internalblock;singleton:=true +Bundle-Version: 1.1.0.qualifier +Bundle-Activator: org.eclipse.papyrus.sysml14.diagram.internalblock.Activator +Bundle-Vendor: Eclipse Modeling Project +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.1.0", + org.eclipse.papyrus.infra.newchild;bundle-version="1.1.0", + org.eclipse.papyrus.views.properties;bundle-version="1.1.0", + org.eclipse.uml2.uml, + org.eclipse.papyrus.infra.core;bundle-version="1.1.0", + org.eclipse.emf.ecore.editor, + org.eclipse.papyrus.infra.onefile;bundle-version="1.1.0", + com.google.guava;bundle-version="11.0.0", + org.eclipse.papyrus.infra.emf;bundle-version="1.1.0" +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Bundle-ActivationPolicy: lazy diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/about.html b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/about.html new file mode 100644 index 00000000000..d35d5aed64c --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/build.properties b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/build.properties new file mode 100644 index 00000000000..90aaca604a4 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/build.properties @@ -0,0 +1,7 @@ +source.. = src/ +output.. = bin/ +bin.includes = plugin.xml,\ + META-INF/,\ + .,\ + about.html,\ + resources/ diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/plugin.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/plugin.xml new file mode 100644 index 00000000000..3d496f6d923 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/plugin.xml @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/pom.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/pom.xml new file mode 100644 index 00000000000..296d229f52e --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + + org.eclipse.papyrus + org.eclipse.papyrus + 1.1.0-SNAPSHOT + ../../../releng/top-pom-extras.xml + + org.eclipse.papyrus + org.eclipse.papyrus.sysml14.diagram.internalblock + 1.1.0-SNAPSHOT + eclipse-plugin + \ No newline at end of file diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/resources/configuration/InternalBlockDiagram.configuration b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/resources/configuration/InternalBlockDiagram.configuration new file mode 100644 index 00000000000..d77bf64be0e --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/resources/configuration/InternalBlockDiagram.configuration @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/resources/palette/internalBlockDiagramPalette.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/resources/palette/internalBlockDiagramPalette.xml new file mode 100644 index 00000000000..5951dd18d99 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/resources/palette/internalBlockDiagramPalette.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/src/org/eclipse/papyrus/sysml14/diagram/internalblock/Activator.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/src/org/eclipse/papyrus/sysml14/diagram/internalblock/Activator.java new file mode 100644 index 00000000000..8ad9a2c65ec --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock/src/org/eclipse/papyrus/sysml14/diagram/internalblock/Activator.java @@ -0,0 +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: + * Benoit Maggi benoit.maggi@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.sysml14.diagram.internalblock; + +import org.eclipse.jface.resource.ImageDescriptor; +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.sysml14.diagram.internalblock"; //$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; + } + + /** + * Returns an image descriptor for the image file at the given + * plug-in relative path + * + * @param path the path + * @return the image descriptor + */ + public static ImageDescriptor getImageDescriptor(String path) { + return imageDescriptorFromPlugin(PLUGIN_ID, path); + } +} diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.classpath b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.classpath new file mode 100644 index 00000000000..ad32c83a788 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.project b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.project new file mode 100644 index 00000000000..8bda2440467 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.sysml14.diagram.parametric + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.settings/org.eclipse.jdt.core.prefs b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..c537b63063c --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/META-INF/MANIFEST.MF b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..68ac6ef2134 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/META-INF/MANIFEST.MF @@ -0,0 +1,20 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: BDD1.4 Configuration for Papyrus +Bundle-SymbolicName: org.eclipse.papyrus.sysml14.diagram.parametric;singleton:=true +Bundle-Version: 1.1.0.qualifier +Bundle-Activator: org.eclipse.papyrus.sysml14.diagram.parametric.Activator +Bundle-Vendor: Eclipse Modeling Project +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.1.0", + org.eclipse.papyrus.infra.newchild;bundle-version="1.1.0", + org.eclipse.papyrus.views.properties;bundle-version="1.1.0", + org.eclipse.uml2.uml, + org.eclipse.papyrus.infra.core;bundle-version="1.1.0", + org.eclipse.emf.ecore.editor, + org.eclipse.papyrus.infra.onefile;bundle-version="1.1.0", + com.google.guava;bundle-version="11.0.0", + org.eclipse.papyrus.infra.emf;bundle-version="1.1.0" +Bundle-RequiredExecutionEnvironment: JavaSE-1.6 +Bundle-ActivationPolicy: lazy diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/about.html b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/about.html new file mode 100644 index 00000000000..d35d5aed64c --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

June 5, 2007

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") 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 http://www.eclipse.org.

+ + + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/build.properties b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/build.properties new file mode 100644 index 00000000000..90aaca604a4 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/build.properties @@ -0,0 +1,7 @@ +source.. = src/ +output.. = bin/ +bin.includes = plugin.xml,\ + META-INF/,\ + .,\ + about.html,\ + resources/ diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/plugin.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/plugin.xml new file mode 100644 index 00000000000..e929de651b4 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/plugin.xml @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/pom.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/pom.xml new file mode 100644 index 00000000000..f22e2e2403d --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + + org.eclipse.papyrus + org.eclipse.papyrus + 1.1.0-SNAPSHOT + ../../../releng/top-pom-extras.xml + + org.eclipse.papyrus + org.eclipse.papyrus.sysml14.diagram.parametric + 1.1.0-SNAPSHOT + eclipse-plugin + \ No newline at end of file diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/resources/configuration/ParametricDiagram.configuration b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/resources/configuration/ParametricDiagram.configuration new file mode 100644 index 00000000000..a61cf8c8347 --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/resources/configuration/ParametricDiagram.configuration @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/resources/palette/parametricDiagramPalette.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/resources/palette/parametricDiagramPalette.xml new file mode 100644 index 00000000000..16b12294c7e --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/resources/palette/parametricDiagramPalette.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/src/org/eclipse/papyrus/sysml14/diagram/parametric/Activator.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/src/org/eclipse/papyrus/sysml14/diagram/parametric/Activator.java new file mode 100644 index 00000000000..8a0f0bccf8e --- /dev/null +++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric/src/org/eclipse/papyrus/sysml14/diagram/parametric/Activator.java @@ -0,0 +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: + * Benoit Maggi benoit.maggi@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.sysml14.diagram.parametric; + +import org.eclipse.jface.resource.ImageDescriptor; +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.sysml14.diagram.parametric"; //$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; + } + + /** + * Returns an image descriptor for the image file at the given + * plug-in relative path + * + * @param path the path + * @return the image descriptor + */ + public static ImageDescriptor getImageDescriptor(String path) { + return imageDescriptorFromPlugin(PLUGIN_ID, path); + } +} -- cgit v1.2.3