Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitThenCompartmentItemSemanticEditPolicy.java')
-rw-r--r--org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitThenCompartmentItemSemanticEditPolicy.java55
1 files changed, 55 insertions, 0 deletions
diff --git a/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitThenCompartmentItemSemanticEditPolicy.java b/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitThenCompartmentItemSemanticEditPolicy.java
new file mode 100644
index 0000000..00233df
--- /dev/null
+++ b/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitThenCompartmentItemSemanticEditPolicy.java
@@ -0,0 +1,55 @@
+/*
+ *
+ */
+package comrel.diagram.edit.policies;
+
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+
+import comrel.diagram.edit.commands.AtomicUnit6CreateCommand;
+import comrel.diagram.edit.commands.CartesianQueuedUnit6CreateCommand;
+import comrel.diagram.edit.commands.ConditionalUnit6CreateCommand;
+import comrel.diagram.edit.commands.ParallelQueuedUnit3CreateCommand;
+import comrel.diagram.edit.commands.SequentialUnit5CreateCommand;
+import comrel.diagram.edit.commands.SingleQueuedUnit4CreateCommand;
+import comrel.diagram.providers.ComrelElementTypes;
+
+/**
+ * @generated
+ */
+public class ConditionalUnitConditionalUnitThenCompartmentItemSemanticEditPolicy
+ extends ComrelBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ConditionalUnitConditionalUnitThenCompartmentItemSemanticEditPolicy() {
+ super(ComrelElementTypes.ConditionalUnit_3030);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if (ComrelElementTypes.CartesianQueuedUnit_3033 == req.getElementType()) {
+ return getGEFWrapper(new CartesianQueuedUnit6CreateCommand(req));
+ }
+ if (ComrelElementTypes.ParallelQueuedUnit_3036 == req.getElementType()) {
+ return getGEFWrapper(new ParallelQueuedUnit3CreateCommand(req));
+ }
+ if (ComrelElementTypes.SingleQueuedUnit_3054 == req.getElementType()) {
+ return getGEFWrapper(new SingleQueuedUnit4CreateCommand(req));
+ }
+ if (ComrelElementTypes.SequentialUnit_3069 == req.getElementType()) {
+ return getGEFWrapper(new SequentialUnit5CreateCommand(req));
+ }
+ if (ComrelElementTypes.ConditionalUnit_3072 == req.getElementType()) {
+ return getGEFWrapper(new ConditionalUnit6CreateCommand(req));
+ }
+ if (ComrelElementTypes.AtomicUnit_3077 == req.getElementType()) {
+ return getGEFWrapper(new AtomicUnit6CreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}

Back to the top