diff options
initial commit CoMReL
Diffstat (limited to 'org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitHelperUnitsCompartment3ItemSemanticEditPolicy.java')
-rw-r--r-- | org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitHelperUnitsCompartment3ItemSemanticEditPolicy.java | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitHelperUnitsCompartment3ItemSemanticEditPolicy.java b/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitHelperUnitsCompartment3ItemSemanticEditPolicy.java new file mode 100644 index 0000000..77b5b46 --- /dev/null +++ b/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitHelperUnitsCompartment3ItemSemanticEditPolicy.java @@ -0,0 +1,47 @@ +/*
+ *
+ */
+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.MultiFeatureUnit3CreateCommand;
+import comrel.diagram.edit.commands.MultiFilterUnit3CreateCommand;
+import comrel.diagram.edit.commands.SingleFeatureUnit3CreateCommand;
+import comrel.diagram.edit.commands.SingleFilterUnit3CreateCommand;
+import comrel.diagram.providers.ComrelElementTypes;
+
+/**
+ * @generated
+ */
+public class ConditionalUnitConditionalUnitHelperUnitsCompartment3ItemSemanticEditPolicy
+ extends ComrelBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public ConditionalUnitConditionalUnitHelperUnitsCompartment3ItemSemanticEditPolicy() {
+ super(ComrelElementTypes.ConditionalUnit_3066);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if (ComrelElementTypes.SingleFeatureUnit_3050 == req.getElementType()) {
+ return getGEFWrapper(new SingleFeatureUnit3CreateCommand(req));
+ }
+ if (ComrelElementTypes.MultiFeatureUnit_3051 == req.getElementType()) {
+ return getGEFWrapper(new MultiFeatureUnit3CreateCommand(req));
+ }
+ if (ComrelElementTypes.SingleFilterUnit_3052 == req.getElementType()) {
+ return getGEFWrapper(new SingleFilterUnit3CreateCommand(req));
+ }
+ if (ComrelElementTypes.MultiFilterUnit_3053 == req.getElementType()) {
+ return getGEFWrapper(new MultiFilterUnit3CreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}
|