Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitIfCompartment5ItemSemanticEditPolicy.java')
-rw-r--r--org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitIfCompartment5ItemSemanticEditPolicy.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitIfCompartment5ItemSemanticEditPolicy.java b/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitIfCompartment5ItemSemanticEditPolicy.java
new file mode 100644
index 0000000..f261fe6
--- /dev/null
+++ b/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitIfCompartment5ItemSemanticEditPolicy.java
@@ -0,0 +1,35 @@
+/*
+ *
+ */
+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.ConditionCheckCreateCommand;
+import comrel.diagram.providers.ComrelElementTypes;
+
+/**
+ * @generated
+ */
+public class ConditionalUnitConditionalUnitIfCompartment5ItemSemanticEditPolicy
+ extends ComrelBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ConditionalUnitConditionalUnitIfCompartment5ItemSemanticEditPolicy() {
+ super(ComrelElementTypes.ConditionalUnit_3072);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if (ComrelElementTypes.ConditionCheck_3076 == req.getElementType()) {
+ return getGEFWrapper(new ConditionCheckCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}

Back to the top