01: package newprocess.diagram.edit.helpers;
02:
03: import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
04: import org.eclipse.gmf.runtime.common.core.command.ICommand;
05: import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper;
06: import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
07: import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
08: import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
09: import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
10: import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
11:
12: /**
13: * @generated
14: */
15: public class New_processBaseEditHelper extends AbstractEditHelper {
16:
17: /**
18: * @generated
19: */
20: public static final String EDIT_POLICY_COMMAND = "edit policy command"; //$NON-NLS-1$
21:
22: /**
23: * @generated
24: */
25: protected ICommand getInsteadCommand(IEditCommandRequest req) {
26: ICommand epCommand = (ICommand) req
27: .getParameter(EDIT_POLICY_COMMAND);
28: req.setParameter(EDIT_POLICY_COMMAND, null);
29: ICommand ehCommand = super .getInsteadCommand(req);
30: if (epCommand == null) {
31: return ehCommand;
32: }
33: if (ehCommand == null) {
34: return epCommand;
35: }
36: CompositeCommand command = new CompositeCommand(null);
37: command.add(epCommand);
38: command.add(ehCommand);
39: return command;
40: }
41:
42: /**
43: * @generated
44: */
45: protected ICommand getCreateCommand(CreateElementRequest req) {
46: return null;
47: }
48:
49: /**
50: * @generated
51: */
52: protected ICommand getCreateRelationshipCommand(
53: CreateRelationshipRequest req) {
54: return null;
55: }
56:
57: /**
58: * @generated
59: */
60: protected ICommand getDestroyElementCommand(
61: DestroyElementRequest req) {
62: return null;
63: }
64:
65: /**
66: * @generated
67: */
68: protected ICommand getDestroyReferenceCommand(
69: DestroyReferenceRequest req) {
70: return null;
71: }
72: }
|