Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tessier2015-01-21 06:08:20 -0500
committerGerrit Code Review @ Eclipse.org2015-01-21 06:08:20 -0500
commitffe986d48d09feae88b1ce3309b2c0d6a695e7ed (patch)
tree789913f737e7b57a1834438df695f91ecbf60ff3 /plugins
parent25a25bc8046b4b81a23667d4f4b34b0e6a8d5de3 (diff)
parent126499d335349dfb9a8d273674f2e74626f89a17 (diff)
downloadorg.eclipse.papyrus-ffe986d48d09feae88b1ce3309b2c0d6a695e7ed.tar.gz
org.eclipse.papyrus-ffe986d48d09feae88b1ce3309b2c0d6a695e7ed.tar.xz
org.eclipse.papyrus-ffe986d48d09feae88b1ce3309b2c0d6a695e7ed.zip
Merge "Bug 440082 - [SysML] Support for SysML 1.4 - initialization of blockdefinition diagram with architectural framework definition : - palette with only package and block Change-Id: I92c6189ad06feba538cf0729dd45238474e79563 Signed-off-by: Benoit Maggi <benoit.maggi@cea.fr>"
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.classpath7
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.project28
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/META-INF/MANIFEST.MF20
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/about.html28
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/build.properties7
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/plugin.xml11
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/pom.xml14
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/BlockDefinitionDiagram.configuration20
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/sysmlBlockDiagram.palette288
-rw-r--r--plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/Activator.java73
11 files changed, 503 insertions, 0 deletions
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.classpath b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.classpath
new file mode 100644
index 00000000000..ad32c83a788
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.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.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.project b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.project
new file mode 100644
index 00000000000..9ba40382a6e
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.sysml14.diagram.blockdefinition</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/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.settings/org.eclipse.jdt.core.prefs b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..c537b63063c
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/.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.blockdefinition/META-INF/MANIFEST.MF b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..d1f1366b7ec
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/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.blockdefinition;singleton:=true
+Bundle-Version: 1.1.0.qualifier
+Bundle-Activator: org.eclipse.papyrus.sysml14.diagram.blockdefinition.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.blockdefinition/about.html b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/about.html
new file mode 100644
index 00000000000..d35d5aed64c
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/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/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/build.properties b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/build.properties
new file mode 100644
index 00000000000..90aaca604a4
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/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.blockdefinition/plugin.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/plugin.xml
new file mode 100644
index 00000000000..180a79b9e47
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/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="resources/configuration/BlockDefinitionDiagram.configuration"
+ original="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration">
+ </contribution>
+ </extension>
+</plugin>
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/pom.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/pom.xml
new file mode 100644
index 00000000000..8e804a3891c
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/pom.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>org.eclipse.papyrus</artifactId>
+ <groupId>org.eclipse.papyrus</groupId>
+ <version>1.1.0-SNAPSHOT</version>
+ <relativePath>../../../releng/top-pom-extras.xml</relativePath>
+ </parent>
+ <groupId>org.eclipse.papyrus</groupId>
+ <artifactId>org.eclipse.papyrus.sysml14.diagram.blockdefinition</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project> \ No newline at end of file
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
new file mode 100644
index 00000000000..bd17be795b1
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/BlockDefinitionDiagram.configuration
@@ -0,0 +1,20 @@
+<?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="_ko07IErbEeSdQKzSRatBjg">
+ <viewpoints xsi:type="configuration:PapyrusViewpoint" xmi:id="_xogdoErbEeSdQKzSRatBjg" name="Default Papyrus Viewpoint">
+ <modelKinds xsi:type="configuration:PapyrusDiagram" xmi:id="_ZrBf4JaBEeS8eNvSwD0lgA" name="Sysml 1.4" icon="platform:/plugin/org.eclipse.papyrus.sysml.diagram.blockdefinition/icons/obj16/Diagram_BlockDefinition.gif" implementationID="PapyrusUMLClassDiagram" customPalette="platform:/plugin/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/sysmlBlockDiagram.palette">
+ <profiles href="http://www.eclipse.org/papyrus/0.7.0/SysML#//blocks"/>
+ <profiles href="http://www.eclipse.org/papyrus/0.7.0/SysML#//portandflows"/>
+ <modelRules xmi:id="_ZrBf4ZaBEeS8eNvSwD0lgA">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
+ </modelRules>
+ <owningRules xmi:id="_ZrBf45aBEeS8eNvSwD0lgA">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
+ </owningRules>
+ <categories href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb49xhEeOqHvRyiN87hA"/>
+ <childRules xmi:id="_ZrBf5ZaBEeS8eNvSwD0lgA"/>
+ <paletteRules xmi:id="_N4GzIKFQEeSx6MYdei1rKA" permit="false" element="clazz.group.*"/>
+ </modelKinds>
+ </viewpoints>
+ <defaultStakeholder href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wLmkdxhEeOqHvRyiN87hA"/>
+ <metamodel href="http://www.eclipse.org/uml2/5.0.0/UML#/"/>
+</configuration:PapyrusConfiguration>
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
new file mode 100644
index 00000000000..9ddc9485feb
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/sysmlBlockDiagram.palette
@@ -0,0 +1,288 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<paletteDefinition>
+ <content>
+ <!-- ASSOCIATIONS -->
+ <!--
+ <drawer iconpath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" id="org.eclipse.papyrus.sysml.diagram.blockdefinition.SYSML_BlockDefinition__Associations" name="Associations">
+
+ <aspectTool description="Create a new Association" id="blockdefinition_associations.tool.association_none"
+ name="Association" refToolId="blockdefinition.tool.association_none">
+ </aspectTool>
+
+ <aspectTool description="Create a new DirectedAssociation" id="blockdefinition_associations.tool.association_none_directed"
+ name="DirectedAssociation" refToolId="blockdefinition.tool.association_none_directed">
+ </aspectTool>
+
+ <aspectTool description="Create a new Composition" id="blockdefinition_associations.tool.association_composite"
+ name="Composition" refToolId="blockdefinition.tool.association_composite">
+ </aspectTool>
+
+ <aspectTool description="Create a new DirectedComposition" id="blockdefinition_associations.tool.association_composite_directed"
+ name="DirectedComposition" refToolId="blockdefinition.tool.association_composite_directed">
+ </aspectTool>
+
+ <aspectTool description="Create a new Aggregation" id="blockdefinition_associations.tool.association_shared"
+ name="Aggregation" refToolId="blockdefinition.tool.association_shared">
+ </aspectTool>
+
+ <aspectTool description="Create a new DirectedAggregation" id="blockdefinition_associations.tool.association_shared_directed"
+ name="DirectedAggregation" refToolId="blockdefinition.tool.association_shared_directed">
+ </aspectTool>
+
+ </drawer>
+ -->
+<!-- MODEL ELEMENTS -->
+ <drawer iconpath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ id="org.eclipse.papyrus.sysml.diagram.blockdefinition.SYSML_BlockDefinition__ModelElements" name="ModelElements">
+
+ <aspectTool description="Create a new Package" id="blockdefinition_modelelements.tool.package" name="Package" refToolId="clazz.tool.package"/>
+ <!--
+ <aspectTool description="Create a new Actor" id="blockdefinition_modelelements.tool.actor"
+ name="Actor" refToolId="blockdefinition.tool.actor">
+ </aspectTool>
+ -->
+ <aspectTool description="Create a new Block" id="blockdefinition_modelelements.tool.block"
+ name="Block" refToolId="clazz.tool.class">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="SysML::Blocks::Block" />
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <!--
+ <aspectTool description="Create a new Signal" id="blockdefinition_modelelements.tool.signal"
+ name="Signal" refToolId="blockdefinition.tool.signal">
+ </aspectTool>
+ <aspectTool description="Create a new Operation" id="blockdefinition_modelelements.tool.operation"
+ name="Operation" refToolId="blockdefinition.tool.operation">
+ </aspectTool>
+ <aspectTool description="Create a new Reception" id="blockdefinition_modelelements.tool.reception"
+ name="Reception" refToolId="blockdefinition.tool.reception">
+ </aspectTool>
+ <aspectTool description="Create a new Property" id="blockdefinition_modelelements.tool.property"
+ name="Property" refToolId="blockdefinition.tool.property">
+ </aspectTool>
+ <aspectTool description="Create a new Part" id="blockdefinition_modelelements.tool.part"
+ name="Part" refToolId="blockdefinition.tool.part">
+ </aspectTool>
+ <aspectTool description="Create a new Reference" id="blockdefinition_modelelements.tool.reference"
+ name="Reference" refToolId="blockdefinition.tool.reference">
+ </aspectTool>
+ <aspectTool description="Create a new ActorPart" id="blockdefinition_modelelements.tool.actorpart"
+ name="ActorPart" refToolId="blockdefinition.tool.actorpart">
+ </aspectTool>
+ <aspectTool description="Create a new Value" id="blockdefinition_modelelements.tool.value"
+ name="Value" refToolId="blockdefinition.tool.value">
+ </aspectTool>
+ <aspectTool description="Create a new InstanceSpecification" id="blockdefinition_modelelements.tool.instancespecification"
+ name="InstanceSpecification" refToolId="blockdefinition.tool.instancespecification">
+ </aspectTool>
+ <aspectTool description="Create a new Slot" id="blockdefinition_modelelements.tool.slot"
+ name="Slot" refToolId="blockdefinition.tool.slot">
+ </aspectTool>
+ <aspectTool description="Create a new Dependency" id="blockdefinition_modelelements.tool.dependency"
+ name="Dependency" refToolId="blockdefinition.tool.dependency">
+ </aspectTool>
+ <aspectTool description="Create a new Generalization" id="blockdefinition_modelelements.tool.generalization"
+ name="Generalization" refToolId="blockdefinition.tool.generalization">
+ </aspectTool>
+ -->
+ </drawer>
+
+ <!--
+ <drawer
+ iconpath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ id="org.eclipse.papyrus.sysml.diagram.blockdefinition.SYSML_BlockDefinition__ContraintTools" name="CommentAndConstraints">
+
+ <aspectTool description="Create a new ConstraintBlock" id="blockdefinition_constraints.tool.constraintblock"
+ name="ConstraintBlock" refToolId="blockdefinition.tool.constraintblock">
+ </aspectTool>
+ <aspectTool description="Create a new ConstraintProperty" id="blockdefinition_constraints.tool.constraintproperty"
+ name="ConstraintProperty" refToolId="blockdefinition.tool.constraintproperty">
+ </aspectTool>
+ <aspectTool description="Create a new Parameter (Property)" id="blockdefinition_constraints.tool.property"
+ name="Parameter" refToolId="blockdefinition.tool.property">
+ </aspectTool>
+ <aspectTool description="Create a new Constraint" id="blockdefinition_constraints.tool.constraint"
+ name="Constraint" refToolId="blockdefinition.tool.constraint">
+ </aspectTool>
+ <aspectTool description="Create a new Comment" id="blockdefinition_constraints.tool.comment"
+ name="Comment" refToolId="blockdefinition.tool.comment">
+ </aspectTool>
+ <aspectTool description="Create a new Comment / Constraint link" id="blockdefinition_constraints.tool.comment_constraint_link"
+ name="Comment / Constraint link" refToolId="blockdefinition.tool.comment_constraint_link">
+ </aspectTool>
+ </drawer>
+
+ <drawer
+ iconpath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ id="org.eclipse.papyrus.sysml.diagram.blockdefinition.SYSML_BlockDefinition__DataTypeTools" name="DataTypes">
+
+ <aspectTool description="Create a new DataType" id="blockdefinition_datatypes.tool.datatype"
+ name="DataType" refToolId="blockdefinition.tool.datatype">
+ </aspectTool>
+ <aspectTool description="Create a new ValueType" id="blockdefinition_datatypes.tool.valuetype"
+ name="ValueType" refToolId="blockdefinition.tool.valuetype">
+ </aspectTool>
+ <aspectTool description="Create a new PrimitiveType" id="blockdefinition_datatypes.tool.primitivetype"
+ name="PrimitiveType" refToolId="blockdefinition.tool.primitivetype">
+ </aspectTool>
+ <aspectTool description="Create a new Enumeration" id="blockdefinition_datatypes.tool.enumeration"
+ name="Enumeration" refToolId="blockdefinition.tool.enumeration">
+ </aspectTool>
+ <aspectTool description="Create a new EnumerationLiteral" id="blockdefinition_datatypes.tool.enumerationliteral"
+ name="EnumerationLiteral" refToolId="blockdefinition.tool.enumerationliteral">
+ </aspectTool>
+ <aspectTool description="Create a new Dimension" id="blockdefinition_datatypes.tool.dimension"
+ name="Dimension" refToolId="blockdefinition.tool.dimension">
+ </aspectTool>
+ <aspectTool description="Create a new Unit" id="blockdefinition_datatypes.tool.unit"
+ name="Unit" refToolId="blockdefinition.tool.unit">
+ </aspectTool>
+ </drawer>
+ -->
+ <!--
+ <drawer
+ iconpath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ id="org.eclipse.papyrus.sysml.diagram.blockdefinition.SYSML_BlockDefinition__Tools" name="Tools">
+ <aspectTool description="Create a new Actor" id="blockdefinition.tool.actor"
+ name="Actor" refToolId="blockdefinition.tool.actor">
+ </aspectTool>
+ <aspectTool description="Create a new Block" id="blockdefinition.tool.block"
+ name="Block" refToolId="blockdefinition.tool.block">
+ </aspectTool>
+ <aspectTool description="Create a new Constraint" id="blockdefinition.tool.constraint"
+ name="Constraint" refToolId="blockdefinition.tool.constraint">
+ </aspectTool>
+ <aspectTool description="Create a new ConstraintBlock" id="blockdefinition.tool.constraintblock"
+ name="ConstraintBlock" refToolId="blockdefinition.tool.constraintblock">
+ </aspectTool>
+ <aspectTool description="Create a new ConstraintProperty" id="blockdefinition.tool.constraintproperty"
+ name="ConstraintProperty" refToolId="blockdefinition.tool.constraintproperty">
+ </aspectTool>
+ <aspectTool description="Create a new DataType" id="blockdefinition.tool.datatype"
+ name="DataType" refToolId="blockdefinition.tool.datatype">
+ </aspectTool>
+ <aspectTool description="Create a new Dimension" id="blockdefinition.tool.dimension"
+ name="Dimension" refToolId="blockdefinition.tool.dimension">
+ </aspectTool>
+ <aspectTool description="Create a new Enumeration" id="blockdefinition.tool.enumeration"
+ name="Enumeration" refToolId="blockdefinition.tool.enumeration">
+ </aspectTool>
+ <aspectTool description="Create a new EnumerationLiteral" id="blockdefinition.tool.enumerationliteral"
+ name="EnumerationLiteral" refToolId="blockdefinition.tool.enumerationliteral">
+ </aspectTool>
+ <aspectTool description="Create a new FlowPort" id="blockdefinition.tool.flowport"
+ name="FlowPort" refToolId="blockdefinition.tool.flowport">
+ </aspectTool>
+ <aspectTool description="Create a new FlowProperty" id="blockdefinition.tool.flowproperty"
+ name="FlowProperty" refToolId="blockdefinition.tool.flowproperty">
+ </aspectTool>
+ <aspectTool description="Create a new FlowSpecification" id="blockdefinition.tool.flowspecification"
+ name="FlowSpecification" refToolId="blockdefinition.tool.flowspecification">
+ </aspectTool>
+ <aspectTool description="Create a new Interface" id="blockdefinition.tool.interface"
+ name="Interface" refToolId="blockdefinition.tool.interface">
+ </aspectTool>
+ <aspectTool description="Create a new Operation" id="blockdefinition.tool.operation"
+ name="Operation" refToolId="blockdefinition.tool.operation">
+ </aspectTool>
+ <aspectTool description="Create a new Part" id="blockdefinition.tool.part"
+ name="Part" refToolId="blockdefinition.tool.part">
+ </aspectTool>
+ <aspectTool description="Create a new Port" id="blockdefinition.tool.port"
+ name="Port" refToolId="blockdefinition.tool.port">
+ </aspectTool>
+ <aspectTool description="Create a new PrimitiveType" id="blockdefinition.tool.primitivetype"
+ name="PrimitiveType" refToolId="blockdefinition.tool.primitivetype">
+ </aspectTool>
+ <aspectTool description="Create a new Property" id="blockdefinition.tool.property"
+ name="Property" refToolId="blockdefinition.tool.property">
+ </aspectTool>
+ <aspectTool description="Create a new Reception" id="blockdefinition.tool.reception"
+ name="Reception" refToolId="blockdefinition.tool.reception">
+ </aspectTool>
+ <aspectTool description="Create a new Reference" id="blockdefinition.tool.reference"
+ name="Reference" refToolId="blockdefinition.tool.reference">
+ </aspectTool>
+ <aspectTool description="Create a new Signal" id="blockdefinition.tool.signal"
+ name="Signal" refToolId="blockdefinition.tool.signal">
+ </aspectTool>
+ <aspectTool description="Create a new Unit" id="blockdefinition.tool.unit"
+ name="Unit" refToolId="blockdefinition.tool.unit">
+ </aspectTool>
+ <aspectTool description="Create a new Value" id="blockdefinition.tool.value"
+ name="Value" refToolId="blockdefinition.tool.value">
+ </aspectTool>
+ <aspectTool description="Create a new ValueType" id="blockdefinition.tool.valuetype"
+ name="ValueType" refToolId="blockdefinition.tool.valuetype">
+ </aspectTool>
+ <aspectTool description="Create a new Association" id="blockdefinition.tool.association"
+ name="Association" refToolId="blockdefinition.tool.association">
+ </aspectTool>
+ <aspectTool description="Create a new Dependency" id="blockdefinition.tool.dependency"
+ name="Dependency" refToolId="blockdefinition.tool.dependency">
+ </aspectTool>
+ <aspectTool description="Create a new Generalization" id="blockdefinition.tool.generalization"
+ name="Generalization" refToolId="blockdefinition.tool.generalization">
+ </aspectTool>
+ <aspectTool description="Create a new InterfaceRealization" id="blockdefinition.tool.interfacerealization"
+ name="InterfaceRealization" refToolId="blockdefinition.tool.interfacerealization">
+ </aspectTool>
+ <aspectTool description="Create a new Usage" id="blockdefinition.tool.usage"
+ name="Usage" refToolId="blockdefinition.tool.usage">
+ </aspectTool>
+
+ <aspectTool description="Create a new Comment" id="blockdefinition.tool.comment"
+ name="Comment" refToolId="clazz.tool.comment">
+ </aspectTool>
+ <aspectTool description="Create a new Constraint" id="blockdefinition.tool.constraint"
+ name="Constraint" refToolId="clazz.tool.constraint">
+ </aspectTool>
+ <aspectTool description="Create a new InstanceSpecification" id="blockdefinition.tool.instancespecification"
+ name="InstanceSpecification" refToolId="clazz.tool.instancespecification">
+ </aspectTool>
+ <aspectTool description="Create a new Model" id="blockdefinition.tool.model"
+ name="Model" refToolId="clazz.tool.model">
+ </aspectTool>
+ <aspectTool description="Create a new Package" id="blockdefinition.tool.package"
+ name="Package" refToolId="clazz.tool.package">
+ </aspectTool>
+ <aspectTool description="Create a new Slot" id="blockdefinition.tool.slot"
+ name="Slot" refToolId="clazz.tool.slot">
+ </aspectTool>
+ <aspectTool description="Create a new Comment / Constraint link" id="blockdefinition.tool.comment / constraint link"
+ name="Comment / Constraint link" refToolId="clazz.tool.link">
+ </aspectTool>
+
+ </drawer>
+
+ <drawer iconpath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ id="org.eclipse.papyrus.sysml.diagram.blockdefinition.SYSML_BlockDefinition__PortAndFlowTools" name="PortAndFlows">
+
+ <aspectTool description="Create a new Port" id="blockdefinition_portandflows.tool.port"
+ name="Port" refToolId="blockdefinition.tool.port">
+ </aspectTool>
+ <aspectTool description="Create a new FlowPort" id="blockdefinition_portandflows.tool.flowport"
+ name="FlowPort" refToolId="blockdefinition.tool.flowport">
+ </aspectTool>
+ <aspectTool description="Create a new FlowSpecification" id="blockdefinition_portandflows.tool.flowspecification"
+ name="FlowSpecification" refToolId="blockdefinition.tool.flowspecification">
+ </aspectTool>
+ <aspectTool description="Create a new FlowProperty" id="blockdefinition_portandflows.tool.flowproperty"
+ name="FlowProperty" refToolId="blockdefinition.tool.flowproperty">
+ </aspectTool>
+ <aspectTool description="Create a new Interface" id="blockdefinition_portandflows.tool.interface"
+ name="Interface" refToolId="blockdefinition.tool.interface">
+ </aspectTool>
+ <aspectTool description="Create a new InterfaceRealization" id="blockdefinition_portandflows.tool.interfacerealization"
+ name="InterfaceRealization" refToolId="blockdefinition.tool.interfacerealization">
+ </aspectTool>
+ <aspectTool description="Create a new Usage" id="blockdefinition_portandflows.tool.usage"
+ name="Usage" refToolId="blockdefinition.tool.usage">
+ </aspectTool>
+
+ </drawer>
+ -->
+ </content>
+</paletteDefinition> \ No newline at end of file
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/Activator.java b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/Activator.java
new file mode 100644
index 00000000000..0062e596f9d
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/src/org/eclipse/papyrus/sysml14/diagram/blockdefinition/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.blockdefinition;
+
+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.blockdefinition"; //$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);
+ }
+}

Back to the top