Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/SequentialUnitSequentialUnitRefactoringUnitsCompartment5ItemSemanticEditPolicy.java')
-rw-r--r--org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/SequentialUnitSequentialUnitRefactoringUnitsCompartment5ItemSemanticEditPolicy.java55
1 files changed, 55 insertions, 0 deletions
diff --git a/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/SequentialUnitSequentialUnitRefactoringUnitsCompartment5ItemSemanticEditPolicy.java b/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/SequentialUnitSequentialUnitRefactoringUnitsCompartment5ItemSemanticEditPolicy.java
new file mode 100644
index 0000000..0480158
--- /dev/null
+++ b/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/SequentialUnitSequentialUnitRefactoringUnitsCompartment5ItemSemanticEditPolicy.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.AtomicUnit5CreateCommand;
+import comrel.diagram.edit.commands.CartesianQueuedUnit5CreateCommand;
+import comrel.diagram.edit.commands.ConditionalUnit5CreateCommand;
+import comrel.diagram.edit.commands.ParallelQueuedUnit6CreateCommand;
+import comrel.diagram.edit.commands.SequentialUnit6CreateCommand;
+import comrel.diagram.edit.commands.SingleQueuedUnit6CreateCommand;
+import comrel.diagram.providers.ComrelElementTypes;
+
+/**
+ * @generated
+ */
+public class SequentialUnitSequentialUnitRefactoringUnitsCompartment5ItemSemanticEditPolicy
+ extends ComrelBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public SequentialUnitSequentialUnitRefactoringUnitsCompartment5ItemSemanticEditPolicy() {
+ super(ComrelElementTypes.SequentialUnit_3070);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if (ComrelElementTypes.CartesianQueuedUnit_3029 == req.getElementType()) {
+ return getGEFWrapper(new CartesianQueuedUnit5CreateCommand(req));
+ }
+ if (ComrelElementTypes.ParallelQueuedUnit_3045 == req.getElementType()) {
+ return getGEFWrapper(new ParallelQueuedUnit6CreateCommand(req));
+ }
+ if (ComrelElementTypes.SingleQueuedUnit_3065 == req.getElementType()) {
+ return getGEFWrapper(new SingleQueuedUnit6CreateCommand(req));
+ }
+ if (ComrelElementTypes.SequentialUnit_3070 == req.getElementType()) {
+ return getGEFWrapper(new SequentialUnit6CreateCommand(req));
+ }
+ if (ComrelElementTypes.ConditionalUnit_3071 == req.getElementType()) {
+ return getGEFWrapper(new ConditionalUnit5CreateCommand(req));
+ }
+ if (ComrelElementTypes.AtomicUnit_3074 == req.getElementType()) {
+ return getGEFWrapper(new AtomicUnit5CreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}

Back to the top