Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/CartesianQueuedUnitCartesianQueuedUnitHelperUnitsCompartment2ItemSemanticEditPolicy.java')
-rw-r--r--org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/CartesianQueuedUnitCartesianQueuedUnitHelperUnitsCompartment2ItemSemanticEditPolicy.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/CartesianQueuedUnitCartesianQueuedUnitHelperUnitsCompartment2ItemSemanticEditPolicy.java b/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/CartesianQueuedUnitCartesianQueuedUnitHelperUnitsCompartment2ItemSemanticEditPolicy.java
new file mode 100644
index 0000000..b83134d
--- /dev/null
+++ b/org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/CartesianQueuedUnitCartesianQueuedUnitHelperUnitsCompartment2ItemSemanticEditPolicy.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.MultiFeatureUnitCreateCommand;
+import comrel.diagram.edit.commands.MultiFilterUnitCreateCommand;
+import comrel.diagram.edit.commands.SingleFeatureUnitCreateCommand;
+import comrel.diagram.edit.commands.SingleFilterUnitCreateCommand;
+import comrel.diagram.providers.ComrelElementTypes;
+
+/**
+ * @generated
+ */
+public class CartesianQueuedUnitCartesianQueuedUnitHelperUnitsCompartment2ItemSemanticEditPolicy
+ extends ComrelBaseItemSemanticEditPolicy {
+
+ /**
+ * @generated
+ */
+ public CartesianQueuedUnitCartesianQueuedUnitHelperUnitsCompartment2ItemSemanticEditPolicy() {
+ super(ComrelElementTypes.CartesianQueuedUnit_3003);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ if (ComrelElementTypes.SingleFeatureUnit_3008 == req.getElementType()) {
+ return getGEFWrapper(new SingleFeatureUnitCreateCommand(req));
+ }
+ if (ComrelElementTypes.MultiFeatureUnit_3012 == req.getElementType()) {
+ return getGEFWrapper(new MultiFeatureUnitCreateCommand(req));
+ }
+ if (ComrelElementTypes.SingleFilterUnit_3016 == req.getElementType()) {
+ return getGEFWrapper(new SingleFilterUnitCreateCommand(req));
+ }
+ if (ComrelElementTypes.MultiFilterUnit_3019 == req.getElementType()) {
+ return getGEFWrapper(new MultiFilterUnitCreateCommand(req));
+ }
+ return super.getCreateCommand(req);
+ }
+
+}

Back to the top