Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortarendt2014-04-16 10:47:32 +0000
committertarendt2014-04-16 10:47:32 +0000
commitc7770b37490503d2e6a297bedbf800bc44e1e88a (patch)
tree4a24656b3727de61f6e559369c736a232b3e7d0b /org.eclipse.emf.refactor.comrel.diagram/src/comrel/diagram/edit/policies/ConditionalUnitConditionalUnitHelperUnitsCompartment3ItemSemanticEditPolicy.java
parent9f26d76211af63dfb1ac3e27d4edb08028b4666c (diff)
downloadorg.eclipse.emf.refactor.refactoring-c7770b37490503d2e6a297bedbf800bc44e1e88a.tar.gz
org.eclipse.emf.refactor.refactoring-c7770b37490503d2e6a297bedbf800bc44e1e88a.tar.xz
org.eclipse.emf.refactor.refactoring-c7770b37490503d2e6a297bedbf800bc44e1e88a.zip
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.java47
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);
+ }
+
+}

Back to the top