01: package newprocess.diagram.edit.policies;
02:
03: import newprocess.NewprocessPackage;
04:
05: import newprocess.diagram.edit.commands.Expression7CreateCommand;
06:
07: import newprocess.diagram.providers.New_processElementTypes;
08:
09: import org.eclipse.gef.commands.Command;
10:
11: import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
12:
13: /**
14: * @generated
15: */
16: public class ExpansionExpansionPostconditionCompartmentItemSemanticEditPolicy
17: extends New_processBaseItemSemanticEditPolicy {
18:
19: /**
20: * @generated
21: */
22: protected Command getCreateCommand(CreateElementRequest req) {
23: if (New_processElementTypes.Expression_3011 == req
24: .getElementType()) {
25: if (req.getContainmentFeature() == null) {
26: req.setContainmentFeature(NewprocessPackage.eINSTANCE
27: .getExpansion_HasPostcondition());
28: }
29: return getMSLWrapper(new Expression7CreateCommand(req));
30: }
31: return super.getCreateCommand(req);
32: }
33: }
|