01: package newprocess.diagram.edit.policies;
02:
03: import newprocess.NewprocessPackage;
04:
05: import newprocess.diagram.edit.commands.Expression5CreateCommand;
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 AsyncActivityAsyncActivityPostconditionCompartment2ItemSemanticEditPolicy
17: extends New_processBaseItemSemanticEditPolicy {
18:
19: /**
20: * @generated
21: */
22: protected Command getCreateCommand(CreateElementRequest req) {
23: if (New_processElementTypes.Expression_3009 == req
24: .getElementType()) {
25: if (req.getContainmentFeature() == null) {
26: req.setContainmentFeature(NewprocessPackage.eINSTANCE
27: .getAsyncActivity_HasPostcondition());
28: }
29: return getMSLWrapper(new Expression5CreateCommand(req));
30: }
31: return super.getCreateCommand(req);
32: }
33: }
|