Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer')
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/META-INF/MANIFEST.MF3
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/plugin.xml630
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ActorPartPropertyHandler.java14
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AllocateHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationCompositeDirectedHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationCompositeHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationNoneDirectedHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationNoneHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationSharedDirectedHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationSharedHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/BlockHandler.java27
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConformHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintBlockHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintBlockParameterHandler.java18
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintPropertyHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/CopyHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/DeriveReqtHandler.java27
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/DimensionHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPortHandler.java27
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_InHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_InOutHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_NAHandler.java17
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_OutHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPropertyHandler.java27
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowSpecificationHandler.java27
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ItemFlowHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/PartPropertyHandler.java14
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ProblemHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/RationaleHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ReferencePropertyHandler.java14
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/RequirementHandler.java27
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/SatisfyHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/UnitHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValuePropertyHandler.java14
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueTypeHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueType_EnumerationHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueType_PrimitiveTypeHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/VerifyHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ViewHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ViewPointHandler.java29
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/AbstractCommandHandler.java167
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/AbstractSysmlModelExplorerCreateCommandHandler.java34
-rw-r--r--plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/CreateCommandHandler.java192
44 files changed, 1237 insertions, 825 deletions
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/META-INF/MANIFEST.MF b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/META-INF/MANIFEST.MF
index 3d3083a1cd9..f0b790af0b6 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/META-INF/MANIFEST.MF
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/META-INF/MANIFEST.MF
@@ -22,7 +22,8 @@ Require-Bundle: org.eclipse.core.runtime,
org.eclipse.papyrus.uml.tools.utils;bundle-version="0.10.0",
org.eclipse.papyrus.infra.core;bundle-version="0.10.0",
org.eclipse.papyrus.infra.widgets;bundle-version="0.10.0",
- org.eclipse.papyrus.infra.emf;bundle-version="0.10.0"
+ org.eclipse.papyrus.infra.emf;bundle-version="0.10.0",
+ org.eclipse.papyrus.uml.modelexplorer;bundle-version="0.10.0"
Bundle-Vendor: %providerName
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .,
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/plugin.xml b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/plugin.xml
index 4f9484bef7e..8520a5237c3 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/plugin.xml
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/plugin.xml
@@ -22,163 +22,475 @@
</extension>
<!-- Creation command declarations -->
-<extension point="org.eclipse.ui.commands">
+<extension point="org.eclipse.ui.handlers">
- <!-- Creation command for ActorPart -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ActorPartPropertyHandler" description="Create a new ActorPart" id="org.eclipse.papyrus.sysml.modelexplorer.ActorPartCreateCommand" name="Create a new ActorPart">
- </command>
+ <!-- Handler for ActorPart -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ActorPartPropertyHandler" commandId="org.eclipse.papyrus.sysml.service.types.ActorPartCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Allocate -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.AllocateHandler" description="Create a new Allocate" id="org.eclipse.papyrus.sysml.modelexplorer.AllocateCreateCommand" name="Create a new Allocate">
- </command>
+ <!-- Handler for Allocate -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.AllocateHandler" commandId="org.eclipse.papyrus.sysml.service.types.AllocateCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Association -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationHandler" description="Create a new Association" id="org.eclipse.papyrus.sysml.modelexplorer.AssociationCreateCommand" name="Create a new Association">
- </command>
+ <!-- Handler for Association -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationHandler" commandId="org.eclipse.papyrus.sysml.service.types.AssociationCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for AssociationComposite -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationCompositeHandler" description="Create a new AssociationComposite" id="org.eclipse.papyrus.sysml.modelexplorer.AssociationCompositeCreateCommand" name="Create a new AssociationComposite">
- </command>
+ <!-- Handler for AssociationComposite -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationCompositeHandler" commandId="org.eclipse.papyrus.sysml.service.types.AssociationCompositeCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for AssociationCompositeDirected -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationCompositeDirectedHandler" description="Create a new AssociationCompositeDirected" id="org.eclipse.papyrus.sysml.modelexplorer.AssociationCompositeDirectedCreateCommand" name="Create a new AssociationCompositeDirected">
- </command>
+ <!-- Handler for AssociationCompositeDirected -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationCompositeDirectedHandler" commandId="org.eclipse.papyrus.sysml.service.types.AssociationCompositeDirectedCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for AssociationNone -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationNoneHandler" description="Create a new AssociationNone" id="org.eclipse.papyrus.sysml.modelexplorer.AssociationNoneCreateCommand" name="Create a new AssociationNone">
- </command>
+ <!-- Handler for AssociationNone -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationNoneHandler" commandId="org.eclipse.papyrus.sysml.service.types.AssociationNoneCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for AssociationNoneDirected -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationNoneDirectedHandler" description="Create a new AssociationNoneDirected" id="org.eclipse.papyrus.sysml.modelexplorer.AssociationNoneDirectedCreateCommand" name="Create a new AssociationNoneDirected">
- </command>
+ <!-- Handler for AssociationNoneDirected -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationNoneDirectedHandler" commandId="org.eclipse.papyrus.sysml.service.types.AssociationNoneDirectedCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for AssociationShared -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationSharedHandler" description="Create a new AssociationShared" id="org.eclipse.papyrus.sysml.modelexplorer.AssociationSharedCreateCommand" name="Create a new AssociationShared">
- </command>
+ <!-- Handler for AssociationShared -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationSharedHandler" commandId="org.eclipse.papyrus.sysml.service.types.AssociationSharedCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for AssociationSharedDirected -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationSharedDirectedHandler" description="Create a new AssociationSharedDirected" id="org.eclipse.papyrus.sysml.modelexplorer.AssociationSharedDirectedCreateCommand" name="Create a new AssociationSharedDirected">
- </command>
+ <!-- Handler for AssociationSharedDirected -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.AssociationSharedDirectedHandler" commandId="org.eclipse.papyrus.sysml.service.types.AssociationSharedDirectedCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Block -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.BlockHandler" description="Create a new Block" id="org.eclipse.papyrus.sysml.modelexplorer.BlockCreateCommand" name="Create a new Block">
- </command>
+ <!-- Handler for Block -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.BlockHandler" commandId="org.eclipse.papyrus.sysml.service.types.BlockCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Conform -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ConformHandler" description="Create a new Conform" id="org.eclipse.papyrus.sysml.modelexplorer.ConformCreateCommand" name="Create a new Conform">
- </command>
+ <!-- Handler for Conform -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ConformHandler" commandId="org.eclipse.papyrus.sysml.service.types.ConformCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for ConstraintBlock -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ConstraintBlockHandler" description="Create a new ConstraintBlock" id="org.eclipse.papyrus.sysml.modelexplorer.ConstraintBlockCreateCommand" name="Create a new ConstraintBlock">
- </command>
+ <!-- Handler for ConstraintBlock -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ConstraintBlockHandler" commandId="org.eclipse.papyrus.sysml.service.types.ConstraintBlockCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for ConstraintBlockParameter -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ConstraintBlockParameterHandler" description="Create a new Parameter" id="org.eclipse.papyrus.sysml.modelexplorer.ConstraintBlockParameterCreateCommand" name="Create a new Parameter">
- </command>
+ <!-- Handler for ConstraintBlockParameter -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ConstraintBlockParameterHandler" commandId="org.eclipse.papyrus.sysml.service.types.ConstraintBlockParameterCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for ConstraintProperty -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ConstraintPropertyHandler" description="Create a new ConstraintProperty" id="org.eclipse.papyrus.sysml.modelexplorer.ConstraintPropertyCreateCommand" name="Create a new ConstraintProperty">
- </command>
+ <!-- Handler for ConstraintProperty -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ConstraintPropertyHandler" commandId="org.eclipse.papyrus.sysml.service.types.ConstraintPropertyCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Copy -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.CopyHandler" description="Create a new Copy" id="org.eclipse.papyrus.sysml.modelexplorer.CopyCreateCommand" name="Create a new Copy">
- </command>
+ <!-- Handler for Copy -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.CopyHandler" commandId="org.eclipse.papyrus.sysml.service.types.CopyCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for DeriveReqt -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.DeriveReqtHandler" description="Create a new DeriveReqt" id="org.eclipse.papyrus.sysml.modelexplorer.DeriveReqtCreateCommand" name="Create a new DeriveReqt">
- </command>
+ <!-- Handler for DeriveReqt -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.DeriveReqtHandler" commandId="org.eclipse.papyrus.sysml.service.types.DeriveReqtCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Dimension -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.DimensionHandler" description="Create a new Dimension" id="org.eclipse.papyrus.sysml.modelexplorer.DimensionCreateCommand" name="Create a new Dimension">
- </command>
+ <!-- Handler for Dimension -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.DimensionHandler" commandId="org.eclipse.papyrus.sysml.service.types.DimensionCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for FlowPort -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPortHandler" description="Create a new FlowPort" id="org.eclipse.papyrus.sysml.modelexplorer.FlowPortCreateCommand" name="Create a new FlowPort">
- </command>
+ <!-- Handler for FlowPort -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPortHandler" commandId="org.eclipse.papyrus.sysml.service.types.FlowPortCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for FlowPort_InOut -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPort_InOutHandler" description="Create a new FlowPort_InOut" id="org.eclipse.papyrus.sysml.modelexplorer.FlowPort_InOutCreateCommand" name="Create a new FlowPort_InOut">
- </command>
+ <!-- Handler for FlowPort_InOut -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPort_InOutHandler" commandId="org.eclipse.papyrus.sysml.service.types.FlowPort_InOutCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for FlowPort_In -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPort_InHandler" description="Create a new FlowPort_In" id="org.eclipse.papyrus.sysml.modelexplorer.FlowPort_InCreateCommand" name="Create a new FlowPort_In">
- </command>
+ <!-- Handler for FlowPort_In -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPort_InHandler" commandId="org.eclipse.papyrus.sysml.service.types.FlowPort_InCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for FlowPort_Out -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPort_OutHandler" description="Create a new FlowPort_Out" id="org.eclipse.papyrus.sysml.modelexplorer.FlowPort_OutCreateCommand" name="Create a new FlowPort_Out">
- </command>
+ <!-- Handler for FlowPort_Out -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPort_OutHandler" commandId="org.eclipse.papyrus.sysml.service.types.FlowPort_OutCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for FlowPort_NA -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPort_NAHandler" description="Create a new FlowPort (non atomic)" id="org.eclipse.papyrus.sysml.modelexplorer.FlowPort_NACreateCommand" name="Create a new FlowPort (non atomic)">
- </command>
+ <!-- Handler for FlowPort_NA -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPort_NAHandler" commandId="org.eclipse.papyrus.sysml.service.types.FlowPort_NACreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for FlowProperty -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPropertyHandler" description="Create a new FlowProperty" id="org.eclipse.papyrus.sysml.modelexplorer.FlowPropertyCreateCommand" name="Create a new FlowProperty">
- </command>
+ <!-- Handler for FlowProperty -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowPropertyHandler" commandId="org.eclipse.papyrus.sysml.service.types.FlowPropertyCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for FlowSpecification -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowSpecificationHandler" description="Create a new FlowSpecification" id="org.eclipse.papyrus.sysml.modelexplorer.FlowSpecificationCreateCommand" name="Create a new FlowSpecification">
- </command>
+ <!-- Handler for FlowSpecification -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.FlowSpecificationHandler" commandId="org.eclipse.papyrus.sysml.service.types.FlowSpecificationCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for ItemFlow -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ItemFlowHandler" description="Create a new ItemFlow" id="org.eclipse.papyrus.sysml.modelexplorer.ItemFlowCreateCommand" name="Create a new ItemFlow">
- </command>
+ <!-- Handler for ItemFlow -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ItemFlowHandler" commandId="org.eclipse.papyrus.sysml.service.types.ItemFlowCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for PartProperty -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.PartPropertyHandler" description="Create a new PartProperty" id="org.eclipse.papyrus.sysml.modelexplorer.PartPropertyCreateCommand" name="Create a new PartProperty">
- </command>
+ <!-- Handler for PartProperty -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.PartPropertyHandler" commandId="org.eclipse.papyrus.sysml.service.types.PartPropertyCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Problem -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ProblemHandler" description="Create a new Problem" id="org.eclipse.papyrus.sysml.modelexplorer.ProblemCreateCommand" name="Create a new Problem">
- </command>
+ <!-- Handler for Problem -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ProblemHandler" commandId="org.eclipse.papyrus.sysml.service.types.ProblemCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Rationale -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.RationaleHandler" description="Create a new Rationale" id="org.eclipse.papyrus.sysml.modelexplorer.RationaleCreateCommand" name="Create a new Rationale">
- </command>
+ <!-- Handler for Rationale -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.RationaleHandler" commandId="org.eclipse.papyrus.sysml.service.types.RationaleCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for ReferenceProperty -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ReferencePropertyHandler" description="Create a new ReferenceProperty" id="org.eclipse.papyrus.sysml.modelexplorer.ReferencePropertyCreateCommand" name="Create a new ReferenceProperty">
- </command>
+ <!-- Handler for ReferenceProperty -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ReferencePropertyHandler" commandId="org.eclipse.papyrus.sysml.service.types.ReferencePropertyCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Requirement -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.RequirementHandler" description="Create a new Requirement" id="org.eclipse.papyrus.sysml.modelexplorer.RequirementCreateCommand" name="Create a new Requirement">
- </command>
+ <!-- Handler for Requirement -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.RequirementHandler" commandId="org.eclipse.papyrus.sysml.service.types.RequirementCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Satisfy -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.SatisfyHandler" description="Create a new Satisfy" id="org.eclipse.papyrus.sysml.modelexplorer.SatisfyCreateCommand" name="Create a new Satisfy">
- </command>
+ <!-- Handler for Satisfy -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.SatisfyHandler" commandId="org.eclipse.papyrus.sysml.service.types.SatisfyCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Unit -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.UnitHandler" description="Create a new Unit" id="org.eclipse.papyrus.sysml.modelexplorer.UnitCreateCommand" name="Create a new Unit">
- </command>
+ <!-- Handler for Unit -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.UnitHandler" commandId="org.eclipse.papyrus.sysml.service.types.UnitCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for ValueProperty -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ValuePropertyHandler" description="Create a new ValueProperty" id="org.eclipse.papyrus.sysml.modelexplorer.ValuePropertyCreateCommand" name="Create a new ValueProperty">
- </command>
+ <!-- Handler for ValueProperty -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ValuePropertyHandler" commandId="org.eclipse.papyrus.sysml.service.types.ValuePropertyCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for ValueType -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ValueTypeHandler" description="Create a new ValueType" id="org.eclipse.papyrus.sysml.modelexplorer.ValueTypeCreateCommand" name="Create a new ValueType">
- </command>
+ <!-- Handler for ValueType -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ValueTypeHandler" commandId="org.eclipse.papyrus.sysml.service.types.ValueTypeCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for ValueType_Enumeration -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ValueType_EnumerationHandler" description="Create a new ValueType_Enumeration" id="org.eclipse.papyrus.sysml.modelexplorer.ValueType_EnumerationCreateCommand" name="Create a new ValueType_Enumeration">
- </command>
+ <!-- Handler for ValueType_Enumeration -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ValueType_EnumerationHandler" commandId="org.eclipse.papyrus.sysml.service.types.ValueType_EnumerationCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for ValueType_PrimitiveType -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ValueType_PrimitiveTypeHandler" description="Create a new ValueType_PrimitiveType" id="org.eclipse.papyrus.sysml.modelexplorer.ValueType_PrimitiveTypeCreateCommand" name="Create a new ValueType_PrimitiveType">
- </command>
+ <!-- Handler for ValueType_PrimitiveType -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ValueType_PrimitiveTypeHandler" commandId="org.eclipse.papyrus.sysml.service.types.ValueType_PrimitiveTypeCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for Verify -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.VerifyHandler" description="Create a new Verify" id="org.eclipse.papyrus.sysml.modelexplorer.VerifyCreateCommand" name="Create a new Verify">
- </command>
+ <!-- Handler for Verify -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.VerifyHandler" commandId="org.eclipse.papyrus.sysml.service.types.VerifyCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for View -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ViewHandler" description="Create a new View" id="org.eclipse.papyrus.sysml.modelexplorer.ViewCreateCommand" name="Create a new View">
- </command>
+ <!-- Handler for View -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ViewHandler" commandId="org.eclipse.papyrus.sysml.service.types.ViewCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
- <!-- Creation command for ViewPoint -->
- <command categoryId="org.eclipse.papyrus.editor.category" defaultHandler="org.eclipse.papyrus.sysml.modelexplorer.handler.ViewPointHandler" description="Create a new ViewPoint" id="org.eclipse.papyrus.sysml.modelexplorer.ViewPointCreateCommand" name="Create a new ViewPoint">
- </command>
+ <!-- Handler for ViewPoint -->
+ <handler class="org.eclipse.papyrus.sysml.modelexplorer.handler.ViewPointHandler" commandId="org.eclipse.papyrus.sysml.service.types.ViewPointCreateCommand">
+ <activeWhen>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.papyrus.views.modelexplorer.modelexplorer">
+ </equals>
+ </with>
+ </activeWhen>
+ </handler>
</extension>
@@ -197,197 +509,197 @@
<menuContribution locationURI="popup:org.eclipse.papyrus.views.modelexplorer.popupmenu.createsysmlchild" allPopups="false">
<!-- Creation menu action for ActorPart -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ActorPartCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" label="Create a new ActorPart" style="push" tooltip="Create a new ActorPart">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ActorPartCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" label="Create a new ActorPart" style="push" tooltip="Create a new ActorPart">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Allocate -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.AllocateCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Abstraction.gif" label="Create a new Allocate" style="push" tooltip="Create a new Allocate">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.AllocateCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Abstraction.gif" label="Create a new Allocate" style="push" tooltip="Create a new Allocate">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Association -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.AssociationCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new Association" style="push" tooltip="Create a new Association">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.AssociationCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new Association" style="push" tooltip="Create a new Association">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for AssociationComposite -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.AssociationCompositeCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationComposite" style="push" tooltip="Create a new AssociationComposite">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.AssociationCompositeCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationComposite" style="push" tooltip="Create a new AssociationComposite">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for AssociationCompositeDirected -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.AssociationCompositeDirectedCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationCompositeDirected" style="push" tooltip="Create a new AssociationCompositeDirected">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.AssociationCompositeDirectedCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationCompositeDirected" style="push" tooltip="Create a new AssociationCompositeDirected">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for AssociationNone -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.AssociationNoneCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationNone" style="push" tooltip="Create a new AssociationNone">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.AssociationNoneCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationNone" style="push" tooltip="Create a new AssociationNone">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for AssociationNoneDirected -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.AssociationNoneDirectedCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationNoneDirected" style="push" tooltip="Create a new AssociationNoneDirected">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.AssociationNoneDirectedCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationNoneDirected" style="push" tooltip="Create a new AssociationNoneDirected">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for AssociationShared -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.AssociationSharedCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationShared" style="push" tooltip="Create a new AssociationShared">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.AssociationSharedCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationShared" style="push" tooltip="Create a new AssociationShared">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for AssociationSharedDirected -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.AssociationSharedDirectedCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationSharedDirected" style="push" tooltip="Create a new AssociationSharedDirected">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.AssociationSharedDirectedCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif" label="Create a new AssociationSharedDirected" style="push" tooltip="Create a new AssociationSharedDirected">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Block -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.BlockCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/Block.gif" label="Create a new Block" style="push" tooltip="Create a new Block">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.BlockCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/Block.gif" label="Create a new Block" style="push" tooltip="Create a new Block">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Conform -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ConformCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/Conform.gif" label="Create a new Conform" style="push" tooltip="Create a new Conform">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ConformCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/Conform.gif" label="Create a new Conform" style="push" tooltip="Create a new Conform">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for ConstraintBlock -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ConstraintBlockCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/constraints/ConstraintBlock.gif" label="Create a new ConstraintBlock" style="push" tooltip="Create a new ConstraintBlock">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ConstraintBlockCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/constraints/ConstraintBlock.gif" label="Create a new ConstraintBlock" style="push" tooltip="Create a new ConstraintBlock">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for ConstraintBlock Parameter -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ConstraintBlockParameterCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" label="Create a new Parameter" style="push" tooltip="Create a new Parameter">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ConstraintBlockParameterCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" label="Create a new Parameter" style="push" tooltip="Create a new Parameter">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for ConstraintProperty -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ConstraintPropertyCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/constraints/ConstraintProperty.gif" label="Create a new ConstraintProperty" style="push" tooltip="Create a new ConstraintProperty">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ConstraintPropertyCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/constraints/ConstraintProperty.gif" label="Create a new ConstraintProperty" style="push" tooltip="Create a new ConstraintProperty">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Copy -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.CopyCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Copy.gif" label="Create a new Copy" style="push" tooltip="Create a new Copy">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.CopyCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Copy.gif" label="Create a new Copy" style="push" tooltip="Create a new Copy">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for DeriveReqt -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.DeriveReqtCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/DeriveReqt.gif" label="Create a new DeriveReqt" style="push" tooltip="Create a new DeriveReqt">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.DeriveReqtCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/DeriveReqt.gif" label="Create a new DeriveReqt" style="push" tooltip="Create a new DeriveReqt">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Dimension -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.DimensionCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/Dimension.gif" label="Create a new Dimension" style="push" tooltip="Create a new Dimension">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.DimensionCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/Dimension.gif" label="Create a new Dimension" style="push" tooltip="Create a new Dimension">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for FlowPort -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.FlowPortCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowPort.gif" label="Create a new FlowPort" style="push" tooltip="Create a new FlowPort">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.FlowPortCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowPort.gif" label="Create a new FlowPort" style="push" tooltip="Create a new FlowPort">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for FlowPort_InOut -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.FlowPort_InOutCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowPort_INOUT.gif" label="Create a new FlowPort_InOut" style="push" tooltip="Create a new FlowPort_InOut">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.FlowPort_InOutCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowPort_INOUT.gif" label="Create a new FlowPort_InOut" style="push" tooltip="Create a new FlowPort_InOut">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for FlowPort_In -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.FlowPort_InCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowPort_IN.gif" label="Create a new FlowPort_In" style="push" tooltip="Create a new FlowPort_In">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.FlowPort_InCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowPort_IN.gif" label="Create a new FlowPort_In" style="push" tooltip="Create a new FlowPort_In">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for FlowPort_Out -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.FlowPort_OutCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowPort_OUT.gif" label="Create a new FlowPort_Out" style="push" tooltip="Create a new FlowPort_Out">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.FlowPort_OutCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowPort_OUT.gif" label="Create a new FlowPort_Out" style="push" tooltip="Create a new FlowPort_Out">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for FlowPort_NA -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.FlowPort_NACreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowPort_NA.gif" label="Create a new FlowPort (non atomic)" style="push" tooltip="Create a new FlowPort (non atomic)">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.FlowPort_NACreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowPort_NA.gif" label="Create a new FlowPort (non atomic)" style="push" tooltip="Create a new FlowPort (non atomic)">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for FlowProperty -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.FlowPropertyCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowProperty.gif" label="Create a new FlowProperty" style="push" tooltip="Create a new FlowProperty">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.FlowPropertyCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowProperty.gif" label="Create a new FlowProperty" style="push" tooltip="Create a new FlowProperty">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for FlowSpecification -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.FlowSpecificationCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowSpecification.gif" label="Create a new FlowSpecification" style="push" tooltip="Create a new FlowSpecification">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.FlowSpecificationCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/FlowSpecification.gif" label="Create a new FlowSpecification" style="push" tooltip="Create a new FlowSpecification">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for ItemFlow -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ItemFlowCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/ItemFlow.gif" label="Create a new ItemFlow" style="push" tooltip="Create a new ItemFlow">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ItemFlowCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/portandflows/ItemFlow.gif" label="Create a new ItemFlow" style="push" tooltip="Create a new ItemFlow">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for PartProperty -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.PartPropertyCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" label="Create a new Part" style="push" tooltip="Create a new Part">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.PartPropertyCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" label="Create a new Part" style="push" tooltip="Create a new Part">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Problem -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ProblemCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/Problem.gif" label="Create a new Problem" style="push" tooltip="Create a new Problem">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ProblemCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/Problem.gif" label="Create a new Problem" style="push" tooltip="Create a new Problem">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Rationale -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.RationaleCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/Rationale.gif" label="Create a new Rationale" style="push" tooltip="Create a new Rationale">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.RationaleCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/Rationale.gif" label="Create a new Rationale" style="push" tooltip="Create a new Rationale">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for ReferenceProperty -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ReferencePropertyCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" label="Create a new Reference" style="push" tooltip="Create a new Reference">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ReferencePropertyCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" label="Create a new Reference" style="push" tooltip="Create a new Reference">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Requirement -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.RequirementCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Requirement.gif" label="Create a new Requirement" style="push" tooltip="Create a new Requirement">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.RequirementCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Requirement.gif" label="Create a new Requirement" style="push" tooltip="Create a new Requirement">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Satisfy -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.SatisfyCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Satisfy.gif" label="Create a new Satisfy" style="push" tooltip="Create a new Satisfy">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.SatisfyCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Satisfy.gif" label="Create a new Satisfy" style="push" tooltip="Create a new Satisfy">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Unit -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.UnitCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/Unit.gif" label="Create a new Unit" style="push" tooltip="Create a new Unit">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.UnitCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/Unit.gif" label="Create a new Unit" style="push" tooltip="Create a new Unit">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for ValueProperty -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ValuePropertyCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" label="Create a new Value" style="push" tooltip="Create a new Value">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ValuePropertyCreateCommand" icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" label="Create a new Value" style="push" tooltip="Create a new Value">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for ValueType -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ValueTypeCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/ValueType.gif" label="Create a new ValueType" style="push" tooltip="Create a new ValueType">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ValueTypeCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/ValueType.gif" label="Create a new ValueType" style="push" tooltip="Create a new ValueType">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for ValueType_Enumeration -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ValueType_EnumerationCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/ValueType.gif" label="Create a new ValueType_Enumeration" style="push" tooltip="Create a new ValueType_Enumeration">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ValueType_EnumerationCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/ValueType.gif" label="Create a new ValueType_Enumeration" style="push" tooltip="Create a new ValueType_Enumeration">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for ValueType_PrimitiveType -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ValueType_PrimitiveTypeCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/ValueType.gif" label="Create a new ValueType_PrimitiveType" style="push" tooltip="Create a new ValueType_PrimitiveType">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ValueType_PrimitiveTypeCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/blocks/ValueType.gif" label="Create a new ValueType_PrimitiveType" style="push" tooltip="Create a new ValueType_PrimitiveType">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for Verify -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.VerifyCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Verify.gif" label="Create a new Verify" style="push" tooltip="Create a new Verify">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.VerifyCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Verify.gif" label="Create a new Verify" style="push" tooltip="Create a new Verify">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for View -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ViewCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/View.gif" label="Create a new View" style="push" tooltip="Create a new View">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ViewCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/View.gif" label="Create a new View" style="push" tooltip="Create a new View">
<visibleWhen checkEnabled="true"/>
</command>
<!-- Creation menu action for ViewPoint -->
- <command commandId="org.eclipse.papyrus.sysml.modelexplorer.ViewPointCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/Viewpoint.gif" label="Create a new ViewPoint" style="push" tooltip="Create a new ViewPoint">
+ <command commandId="org.eclipse.papyrus.sysml.service.types.ViewPointCreateCommand" icon="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/Viewpoint.gif" label="Create a new ViewPoint" style="push" tooltip="Create a new ViewPoint">
<visibleWhen checkEnabled="true"/>
</command>
@@ -399,13 +711,13 @@
<extension point="org.eclipse.ui.bindings">
<!-- "CTRL+I" : Create In FlowPort -->
- <key commandId="org.eclipse.papyrus.sysml.modelexplorer.FlowPort_InCreateCommand"
+ <key commandId="org.eclipse.papyrus.sysml.service.types.FlowPort_InCreateCommand"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="CTRL+I">
</key>
<!-- "CTRL+O" : Create Out FlowPort -->
- <key commandId="org.eclipse.papyrus.sysml.modelexplorer.FlowPort_OutCreateCommand"
+ <key commandId="org.eclipse.papyrus.sysml.service.types.FlowPort_OutCreateCommand"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="CTRL+O">
</key>
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ActorPartPropertyHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ActorPartPropertyHandler.java
index 462cef8544c..bb4a147f59a 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ActorPartPropertyHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ActorPartPropertyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.common.command.UnexecutableCommand;
import org.eclipse.emf.ecore.EObject;
@@ -22,7 +32,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
*
* @generated
*/
-public class ActorPartPropertyHandler extends CreateCommandHandler implements IHandler {
+public class ActorPartPropertyHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AllocateHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AllocateHandler.java
index 6914ca912b3..beb872b5f97 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AllocateHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AllocateHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Allocate creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class AllocateHandler extends CreateCommandHandler implements IHandler {
+public class AllocateHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.ALLOCATE;
- }
+ return SysMLElementTypes.ALLOCATE;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationCompositeDirectedHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationCompositeDirectedHandler.java
index 05a3da3e711..2a958a236a3 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationCompositeDirectedHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationCompositeDirectedHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for AssociationCompositeDirected creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class AssociationCompositeDirectedHandler extends CreateCommandHandler implements IHandler {
+public class AssociationCompositeDirectedHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.ASSOCIATION_COMPOSITE_DIRECTED;
- }
+ return SysMLElementTypes.ASSOCIATION_COMPOSITE_DIRECTED;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationCompositeHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationCompositeHandler.java
index 2fffa905c4a..06b181c8de1 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationCompositeHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationCompositeHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for AssociationComposite creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class AssociationCompositeHandler extends CreateCommandHandler implements IHandler {
+public class AssociationCompositeHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.ASSOCIATION_COMPOSITE;
- }
+ return SysMLElementTypes.ASSOCIATION_COMPOSITE;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationHandler.java
index c2daab6a5f4..4ecdb7aaabf 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Association creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class AssociationHandler extends CreateCommandHandler implements IHandler {
+public class AssociationHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.ASSOCIATION;
- }
+ return SysMLElementTypes.ASSOCIATION;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationNoneDirectedHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationNoneDirectedHandler.java
index 332ebe82c80..a00839e790a 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationNoneDirectedHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationNoneDirectedHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for AssociationNoneDirected creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class AssociationNoneDirectedHandler extends CreateCommandHandler implements IHandler {
+public class AssociationNoneDirectedHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.ASSOCIATION_NONE_DIRECTED;
- }
+ return SysMLElementTypes.ASSOCIATION_NONE_DIRECTED;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationNoneHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationNoneHandler.java
index eed35c4f6b5..f6a64d68881 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationNoneHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationNoneHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for AssociationNone creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class AssociationNoneHandler extends CreateCommandHandler implements IHandler {
+public class AssociationNoneHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.ASSOCIATION_NONE;
- }
+ return SysMLElementTypes.ASSOCIATION_NONE;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationSharedDirectedHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationSharedDirectedHandler.java
index d4609bf0136..285e6e392e9 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationSharedDirectedHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationSharedDirectedHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for AssociationSharedDirected creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class AssociationSharedDirectedHandler extends CreateCommandHandler implements IHandler {
+public class AssociationSharedDirectedHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.ASSOCIATION_SHARED_DIRECTED;
- }
+ return SysMLElementTypes.ASSOCIATION_SHARED_DIRECTED;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationSharedHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationSharedHandler.java
index bd81d8030f1..7e10ea7a20c 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationSharedHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/AssociationSharedHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for AssociationShared creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class AssociationSharedHandler extends CreateCommandHandler implements IHandler {
+public class AssociationSharedHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.ASSOCIATION_SHARED;
- }
+ return SysMLElementTypes.ASSOCIATION_SHARED;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/BlockHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/BlockHandler.java
index 38870d96844..b368686abb1 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/BlockHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/BlockHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Block creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class BlockHandler extends CreateCommandHandler implements IHandler {
+public class BlockHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
* @see org.eclipse.papyrus.uml.service.creation.handler.CreateHandler#getElementTypeToCreate()
- *
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.BLOCK;
- }
+ return SysMLElementTypes.BLOCK;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConformHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConformHandler.java
index 2cd85f319b4..17276fd4dcb 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConformHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConformHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Conform creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class ConformHandler extends CreateCommandHandler implements IHandler {
+public class ConformHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.CONFORM;
- }
+ return SysMLElementTypes.CONFORM;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintBlockHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintBlockHandler.java
index 7e971b50548..b606e4c7f91 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintBlockHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintBlockHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for ConstraintBlock creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class ConstraintBlockHandler extends CreateCommandHandler implements IHandler {
+public class ConstraintBlockHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.CONSTRAINT_BLOCK;
- }
+ return SysMLElementTypes.CONSTRAINT_BLOCK;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintBlockParameterHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintBlockParameterHandler.java
index bfd24f28364..0ceb8f4d85a 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintBlockParameterHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintBlockParameterHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.common.command.UnexecutableCommand;
import org.eclipse.emf.ecore.EObject;
@@ -25,11 +35,11 @@ import org.eclipse.uml2.uml.UMLPackage;
*
* @generated
*/
-public class ConstraintBlockParameterHandler extends CreateCommandHandler implements IHandler {
+public class ConstraintBlockParameterHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
*
* @return the IElementType this handler is supposed to create
*
@@ -65,7 +75,7 @@ public class ConstraintBlockParameterHandler extends CreateCommandHandler implem
} else {
createRequest = new CreateElementRequest(container, getElementTypeToCreate(), reference);
}
-
+
String name = NamedElementUtil.getDefaultNameWithIncrementFromBase("parameter", ((Element)container).eContents()); //$NON-NLS-1$
createRequest.setParameter(IConfigureCommandFactory.CONFIGURE_COMMAND_FACTORY_ID, new ConfigureFeatureCommandFactory(UMLPackage.eINSTANCE.getNamedElement_Name(), name));
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintPropertyHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintPropertyHandler.java
index 25258aaf111..9a34c292fc3 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintPropertyHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ConstraintPropertyHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for ConstraintProperty creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class ConstraintPropertyHandler extends CreateCommandHandler implements IHandler {
+public class ConstraintPropertyHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.CONSTRAINT_PROPERTY;
- }
+ return SysMLElementTypes.CONSTRAINT_PROPERTY;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/CopyHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/CopyHandler.java
index f4f0a58e142..480dce0f9ac 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/CopyHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/CopyHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Copy creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class CopyHandler extends CreateCommandHandler implements IHandler {
+public class CopyHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.COPY;
- }
+ return SysMLElementTypes.COPY;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/DeriveReqtHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/DeriveReqtHandler.java
index cfe3b33a5f6..81b7a04052d 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/DeriveReqtHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/DeriveReqtHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for DeriveReqt creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class DeriveReqtHandler extends CreateCommandHandler implements IHandler {
+public class DeriveReqtHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
* @see org.eclipse.papyrus.uml.service.creation.handler.CreateHandler#getElementTypeToCreate()
- *
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.DERIVE_REQT;
- }
+ return SysMLElementTypes.DERIVE_REQT;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/DimensionHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/DimensionHandler.java
index 6adf7b01a3f..e7c38d2b7be 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/DimensionHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/DimensionHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Dimension creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class DimensionHandler extends CreateCommandHandler implements IHandler {
+public class DimensionHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.DIMENSION;
- }
+ return SysMLElementTypes.DIMENSION;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPortHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPortHandler.java
index b1654991467..d7b2af297a9 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPortHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPortHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for FlowPort creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class FlowPortHandler extends CreateCommandHandler implements IHandler {
+public class FlowPortHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
* @see org.eclipse.papyrus.uml.service.creation.handler.CreateHandler#getElementTypeToCreate()
- *
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.FLOW_PORT;
- }
+ return SysMLElementTypes.FLOW_PORT;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_InHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_InHandler.java
index 199d67239e5..39b7a689dc4 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_InHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_InHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for FlowPort_In creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class FlowPort_InHandler extends CreateCommandHandler implements IHandler {
+public class FlowPort_InHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.FLOW_PORT_IN;
- }
+ return SysMLElementTypes.FLOW_PORT_IN;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_InOutHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_InOutHandler.java
index 6d97734a73b..6963f96737e 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_InOutHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_InOutHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for FlowPort_InOut creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class FlowPort_InOutHandler extends CreateCommandHandler implements IHandler {
+public class FlowPort_InOutHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.FLOW_PORT_IN_OUT;
- }
+ return SysMLElementTypes.FLOW_PORT_IN_OUT;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_NAHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_NAHandler.java
index 0047a1453c2..abb4c152d4c 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_NAHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_NAHandler.java
@@ -1,3 +1,14 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
import org.eclipse.emf.common.command.Command;
@@ -14,12 +25,13 @@ import org.eclipse.papyrus.sysml.diagram.common.commands.CreateFlowPortWithFlowS
/**
* <pre>
* Command handler for FlowPort non atomic creation
- *
+ *
* </pre>
+ *
* @generated
*/
public class FlowPort_NAHandler extends FlowPortHandler {
-
+
/**
* {@inheritDoc}
*/
@@ -52,4 +64,3 @@ public class FlowPort_NAHandler extends FlowPortHandler {
return emfCommand;
}
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_OutHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_OutHandler.java
index 4cf3323f340..f2e05871f1f 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_OutHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPort_OutHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for FlowPort_Out creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class FlowPort_OutHandler extends CreateCommandHandler implements IHandler {
+public class FlowPort_OutHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.FLOW_PORT_OUT;
- }
+ return SysMLElementTypes.FLOW_PORT_OUT;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPropertyHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPropertyHandler.java
index 219cba3e09a..85c6fa3324b 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPropertyHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowPropertyHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for FlowProperty creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class FlowPropertyHandler extends CreateCommandHandler implements IHandler {
+public class FlowPropertyHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
* @see org.eclipse.papyrus.uml.service.creation.handler.CreateHandler#getElementTypeToCreate()
- *
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.FLOW_PROPERTY;
- }
+ return SysMLElementTypes.FLOW_PROPERTY;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowSpecificationHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowSpecificationHandler.java
index f5b4984ca93..f2170733c55 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowSpecificationHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/FlowSpecificationHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for FlowSpecification creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class FlowSpecificationHandler extends CreateCommandHandler implements IHandler {
+public class FlowSpecificationHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
* @see org.eclipse.papyrus.uml.service.creation.handler.CreateHandler#getElementTypeToCreate()
- *
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.FLOW_SPECIFICATION;
- }
+ return SysMLElementTypes.FLOW_SPECIFICATION;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ItemFlowHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ItemFlowHandler.java
index 7b2eac90871..66d47e84a2f 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ItemFlowHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ItemFlowHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for ItemFlow creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class ItemFlowHandler extends CreateCommandHandler implements IHandler {
+public class ItemFlowHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.ITEM_FLOW;
- }
+ return SysMLElementTypes.ITEM_FLOW;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/PartPropertyHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/PartPropertyHandler.java
index 57dc1e6ff25..f7ea87a8dc0 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/PartPropertyHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/PartPropertyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.common.command.UnexecutableCommand;
import org.eclipse.emf.ecore.EObject;
@@ -22,7 +32,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
*
* @generated
*/
-public class PartPropertyHandler extends CreateCommandHandler implements IHandler {
+public class PartPropertyHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ProblemHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ProblemHandler.java
index 8ff23e49523..64a4a64ab3d 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ProblemHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ProblemHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Problem creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class ProblemHandler extends CreateCommandHandler implements IHandler {
+public class ProblemHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.PROBLEM;
- }
+ return SysMLElementTypes.PROBLEM;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/RationaleHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/RationaleHandler.java
index 81965826869..3929eae12b8 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/RationaleHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/RationaleHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Rationale creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class RationaleHandler extends CreateCommandHandler implements IHandler {
+public class RationaleHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.RATIONALE;
- }
+ return SysMLElementTypes.RATIONALE;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ReferencePropertyHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ReferencePropertyHandler.java
index 9ae4d0a3a2e..c46f489006d 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ReferencePropertyHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ReferencePropertyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.common.command.UnexecutableCommand;
import org.eclipse.emf.ecore.EObject;
@@ -22,7 +32,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
*
* @generated
*/
-public class ReferencePropertyHandler extends CreateCommandHandler implements IHandler {
+public class ReferencePropertyHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/RequirementHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/RequirementHandler.java
index 6cb0b4f15af..1b7017e3847 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/RequirementHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/RequirementHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Requirement creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class RequirementHandler extends CreateCommandHandler implements IHandler {
+public class RequirementHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
* @see org.eclipse.papyrus.uml.service.creation.handler.CreateHandler#getElementTypeToCreate()
- *
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.REQUIREMENT;
- }
+ return SysMLElementTypes.REQUIREMENT;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/SatisfyHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/SatisfyHandler.java
index cc7394240f6..69f926ed9fa 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/SatisfyHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/SatisfyHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Satisfy creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class SatisfyHandler extends CreateCommandHandler implements IHandler {
+public class SatisfyHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.SATISFY;
- }
+ return SysMLElementTypes.SATISFY;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/UnitHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/UnitHandler.java
index ea5349943e0..652272142b0 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/UnitHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/UnitHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Unit creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class UnitHandler extends CreateCommandHandler implements IHandler {
+public class UnitHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.UNIT;
- }
+ return SysMLElementTypes.UNIT;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValuePropertyHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValuePropertyHandler.java
index e02d70803b5..a25998f2310 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValuePropertyHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValuePropertyHandler.java
@@ -1,6 +1,16 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.common.command.UnexecutableCommand;
import org.eclipse.emf.ecore.EObject;
@@ -22,7 +32,7 @@ import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
*
* @generated
*/
-public class ValuePropertyHandler extends CreateCommandHandler implements IHandler {
+public class ValuePropertyHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueTypeHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueTypeHandler.java
index 27a568e5613..a74b6fb24d3 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueTypeHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueTypeHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for ValueType creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class ValueTypeHandler extends CreateCommandHandler implements IHandler {
+public class ValueTypeHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.VALUE_TYPE;
- }
+ return SysMLElementTypes.VALUE_TYPE;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueType_EnumerationHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueType_EnumerationHandler.java
index dcd825e2901..1d14ad5bd0a 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueType_EnumerationHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueType_EnumerationHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for ValueType_Enumeration creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class ValueType_EnumerationHandler extends CreateCommandHandler implements IHandler {
+public class ValueType_EnumerationHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.VALUE_TYPE_ENUMERATION;
- }
+ return SysMLElementTypes.VALUE_TYPE_ENUMERATION;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueType_PrimitiveTypeHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueType_PrimitiveTypeHandler.java
index 42a44d80093..57332ef81da 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueType_PrimitiveTypeHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ValueType_PrimitiveTypeHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for ValueType_PrimitiveType creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class ValueType_PrimitiveTypeHandler extends CreateCommandHandler implements IHandler {
+public class ValueType_PrimitiveTypeHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.VALUE_TYPE_PRIMITIVE_TYPE;
- }
+ return SysMLElementTypes.VALUE_TYPE_PRIMITIVE_TYPE;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/VerifyHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/VerifyHandler.java
index 87f869b1529..ee636315ba4 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/VerifyHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/VerifyHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for Verify creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class VerifyHandler extends CreateCommandHandler implements IHandler {
+public class VerifyHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.VERIFY;
- }
+ return SysMLElementTypes.VERIFY;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ViewHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ViewHandler.java
index ceaf88c7fb1..627268b84a1 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ViewHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ViewHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for View creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class ViewHandler extends CreateCommandHandler implements IHandler {
+public class ViewHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.VIEW;
- }
+ return SysMLElementTypes.VIEW;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ViewPointHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ViewPointHandler.java
index 4270edbf3e9..5209f723d3b 100644
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ViewPointHandler.java
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src-gen/org/eclipse/papyrus/sysml/modelexplorer/handler/ViewPointHandler.java
@@ -1,29 +1,40 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
package org.eclipse.papyrus.sysml.modelexplorer.handler;
-import org.eclipse.core.commands.IHandler;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes;
/**
* <pre>
* Command handler for ViewPoint creation
- *
+ *
* </pre>
+ *
* @generated
*/
-public class ViewPointHandler extends CreateCommandHandler implements IHandler {
+public class ViewPointHandler extends AbstractSysmlModelExplorerCreateCommandHandler {
/**
* <pre>
- * @see org.eclipse.papyrus.sysml.modelexplorer.handler.CreateCommandHandler#getElementTypeToCreate()
- *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCreateCommandHandler#getElementTypeToCreate()
+ *
* @return the IElementType this handler is supposed to create
- *
+ *
* </pre>
+ *
* @generated
*/
protected IElementType getElementTypeToCreate() {
- return SysMLElementTypes.VIEW_POINT;
- }
+ return SysMLElementTypes.VIEW_POINT;
+ }
}
-
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/AbstractCommandHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/AbstractCommandHandler.java
deleted file mode 100644
index 6ff029ddce3..00000000000
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/AbstractCommandHandler.java
+++ /dev/null
@@ -1,167 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010-2011 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:
- *
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.modelexplorer.handler;
-
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.facet.infra.browser.uicore.internal.model.LinkItem;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForHandlers;
-import org.eclipse.papyrus.sysml.modelexplorer.Activator;
-import org.eclipse.papyrus.views.modelexplorer.CommandContext;
-import org.eclipse.papyrus.views.modelexplorer.ICommandContext;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
-
-/**
- * <pre>
- *
- * This abstract command handler manages:
- * - current selection in order to build a list of the selected {@link EObject}
- * - execute the command (returned by children) in Papyrus {@link TransactionalEditingDomain}
- * - calculate the command enablement and visibility regarding the command executability
- * (the command is now shown in menu if not executable).
- *
- * </pre>
- */
-public abstract class AbstractCommandHandler extends AbstractHandler {
-
- /**
- * <pre>
- *
- * Returns the command to execute (to be implemented
- * in children implementing this class)
- *
- * @return the command to execute
- *
- * </pre>
- */
- protected abstract Command getCommand();
-
- /**
- * <pre>
- * Parse current selection and extract the command context (can be null).
- *
- * @return the command context based on current selection
- * </pre>
- */
- protected ICommandContext getCommandContext() {
-
- // Get current selection from workbench
- IWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- Object selection = (activeWorkbenchWindow != null) ? activeWorkbenchWindow.getSelectionService().getSelection() : null;
-
- // If the selection is null, return null command context.
- if(selection == null) {
- return null;
- }
-
- // Get first element if the selection is an IStructuredSelection
- if(selection instanceof IStructuredSelection) {
- IStructuredSelection structuredSelection = (IStructuredSelection)selection;
- selection = structuredSelection.getFirstElement();
- }
-
- // Treat non-null selected object (try to adapt and return EObject or EReference)
- EObject container = null;
- EReference reference = null;
-
- if(selection instanceof IAdaptable) {
-
- container = (EObject)((IAdaptable)selection).getAdapter(EObject.class);
-
- if(container == null) {
- reference = (EReference)((IAdaptable)selection).getAdapter(EReference.class);
-
- // The following part introduce a dependency to EMF Facet.
- // Although the selection can be adapted to EReference, the link parent is required but
- // no API allows to get this element except LinkItem or ITreeElement.
- if((reference != null) && (selection instanceof LinkItem)) {
- container = ((LinkItem)selection).getParent();
- }
- }
- }
-
- // Prepare the command context
- ICommandContext context = null;
- if(container != null) {
- if(reference != null) {
- context = new CommandContext(container, reference);
- } else {
- context = new CommandContext(container);
- }
- }
-
- // Return the context
- return context;
- }
-
-
-
- /**
- *
- * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
- *
- * @param event
- * @return null
- * @throws ExecutionException
- */
- public Object execute(ExecutionEvent event) throws ExecutionException {
-
- Command creationcommand = null;
-
- try {
-
- ServiceUtilsForHandlers util = ServiceUtilsForHandlers.getInstance();
- creationcommand = getCommand();
-
- util.getTransactionalEditingDomain(event).getCommandStack().execute(creationcommand);
-
- return creationcommand.getResult();
-
- } catch (ServiceException e) {
-
- Activator.log.error("Unexpected error while executing command.", e);
-
- }
-
- return null;
- }
-
- /**
- *
- * @see org.eclipse.core.commands.AbstractHandler#isEnabled()
- *
- * @return true (enabled) when the command can be executed.
- */
- @Override
- public boolean isEnabled() {
- return getCommand().canExecute();
- }
-
- /**
- *
- * @return true (visible) when the command can be executed.
- */
- public boolean isVisible() {
- return getCommand().canExecute();
- }
-}
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/AbstractSysmlModelExplorerCreateCommandHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/AbstractSysmlModelExplorerCreateCommandHandler.java
new file mode 100644
index 00000000000..e5b30040bd1
--- /dev/null
+++ b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/AbstractSysmlModelExplorerCreateCommandHandler.java
@@ -0,0 +1,34 @@
+/*****************************************************************************
+ * 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:
+ * Juan Cadavid (CEA LIST) juan.cadavid@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.modelexplorer.handler;
+
+import org.eclipse.papyrus.sysml.service.types.handlers.AbstractSysmlCreateCommandHandler;
+import org.eclipse.papyrus.uml.modelexplorer.util.ModelExplorerUtils;
+import org.eclipse.papyrus.uml.service.types.utils.ICommandContext;
+
+
+/**
+ * Abstract handler supertype for every generated handler for the creation of SysML elements from the model explorer.
+ * (Create SysML child...)
+ */
+public abstract class AbstractSysmlModelExplorerCreateCommandHandler extends AbstractSysmlCreateCommandHandler {
+
+ /**
+ *
+ * @see org.eclipse.papyrus.uml.service.types.handlers.AbstractCommandHandler#getCommandContext()
+ *
+ * @return
+ */
+ protected ICommandContext getCommandContext() {
+ return ModelExplorerUtils.getSelectionCommandContext();
+ }
+}
diff --git a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/CreateCommandHandler.java b/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/CreateCommandHandler.java
deleted file mode 100644
index a089af3012d..00000000000
--- a/plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer/src/org/eclipse/papyrus/sysml/modelexplorer/handler/CreateCommandHandler.java
+++ /dev/null
@@ -1,192 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010-2011 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:
- *
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.sysml.modelexplorer.handler;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.command.UnexecutableCommand;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.sysml.modelexplorer.filter.CommandFilter;
-import org.eclipse.papyrus.views.modelexplorer.ICommandContext;
-import org.eclipse.papyrus.views.modelexplorer.ICommandFilter;
-import org.eclipse.papyrus.views.modelexplorer.ModelExplorerPageBookView;
-import org.eclipse.papyrus.views.modelexplorer.ModelExplorerView;
-import org.eclipse.papyrus.views.modelexplorer.NavigatorUtils;
-
-/**
- * Default handler for Create command used in the ModelExplorer contextual ("Create new child") menu.
- *
- */
-public abstract class CreateCommandHandler extends AbstractCommandHandler {
-
- protected abstract IElementType getElementTypeToCreate();
-
- protected ICommandFilter filter = new CommandFilter();
-
- /** Current createCommand for selection (updated in {@link CreateCommandHandler#isEnabled()}) */
- private Command createCommand;
-
- /**
- * <pre>
- *
- * Build the create command for an element creation in the selected container.
- * The create command is given by the {@link IElementEditService} of selected
- * element.
- *
- * @return the composite creation command for current selection
- *
- * </pre>
- */
- protected Command buildCommand() {
-
- ICommandContext commandContext = getCommandContext();
- if(commandContext == null) {
- return UnexecutableCommand.INSTANCE;
- }
-
- EObject container = commandContext.getContainer();
- EReference reference = commandContext.getReference();
-
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(container);
- if(provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
-
- // Retrieve create command from the Element Edit service
- CreateElementRequest createRequest = null;
- if(reference == null) {
- createRequest = new CreateElementRequest(container, getElementTypeToCreate());
- } else {
- createRequest = new CreateElementRequest(container, getElementTypeToCreate(), reference);
- }
-
- ICommand createGMFCommand = provider.getEditCommand(createRequest);
-
- Command emfCommand = new org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper(createGMFCommand);
- return emfCommand;
- }
-
- /**
- *
- * @see org.eclipse.papyrus.uml.modelexplorer.handler.AbstractCommandHandler#getCommand()
- *
- * @return current command (only built here when the stored command is null)
- */
- @Override
- protected Command getCommand() {
-
- // Build the command in case it is not initialized.
- if(createCommand == null) {
- createCommand = buildCommand();
- }
-
- return createCommand;
- }
-
- /**
- * Add selection on new element after creation.
- *
- * @see org.listerel.papyrus.sysml.modelexplorer.common.handler.AbstractCommandHandler#execute(org.eclipse.core.commands.ExecutionEvent)
- *
- * @param event
- * @return
- * @throws ExecutionException
- */
- @Override
- public Object execute(ExecutionEvent event) throws ExecutionException {
- Object result = super.execute(event);
-
- // Find newly created element
- EObject newElement = null;
-
- if(result instanceof Collection<?>) {
- Collection<?> results = (Collection<?>)result;
- if((!results.isEmpty()) && (results.toArray()[0] instanceof EObject)) {
- newElement = (EObject)results.toArray()[0];
- }
- }
-
- // Retrieve model explorer
- ModelExplorerView modelExplorerView = null;
-
- ModelExplorerPageBookView bookViewPart = (ModelExplorerPageBookView)NavigatorUtils.findViewPart("org.eclipse.papyrus.views.modelexplorer.modelexplorer"); //$NON-NLS-0$
- if(bookViewPart != null) {
- modelExplorerView = (ModelExplorerView)bookViewPart.getActiveView();
- }
-
- // Set selection on new element in the model explorer
- if((modelExplorerView != null) && (newElement != null)) {
- List<EObject> semanticElementList = new ArrayList<EObject>();
- semanticElementList.add(newElement);
- modelExplorerView.revealSemanticElement(semanticElementList);
- }
-
- return result;
- }
-
- /**
- *
- * @see org.eclipse.papyrus.uml.modelexplorer.handler.AbstractCommandHandler#isVisible()
- *
- * @return
- */
- @Override
- public boolean isVisible() {
-
- // Temporary (customizable implementation to be provided) filter to avoid all
- // creation command to be visible (avoid to large set of possible children).
- if(!filter.getVisibleCommands().contains(getElementTypeToCreate())) {
- return false;
- }
-
- return super.isVisible();
- }
-
- /**
- *
- * @see org.eclipse.papyrus.uml.modelexplorer.handler.AbstractCommandHandler#isEnabled()
- *
- * @return
- */
- @Override
- public boolean isEnabled() {
-
- // Prepare and store the delete command only when trying to find out
- // whether the command is enabled or not.
- // This assumes the isEnabled() method is called each time the contextual menu
- // opens.
- createCommand = buildCommand();
-
- // Temporary (customizable implementation to be provided) filter to avoid all
- // creation command to be visible (avoid to large set of possible children).
- if(!filter.getVisibleCommands().contains(getElementTypeToCreate())) {
- return false;
- }
-
- return super.isEnabled();
- }
-
-}

Back to the top