01: package newprocess.diagram.edit.parts;
02:
03: import newprocess.diagram.edit.policies.ProcessCanonicalEditPolicy;
04: import newprocess.diagram.edit.policies.ProcessItemSemanticEditPolicy;
05:
06: import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
07: import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
08: import org.eclipse.gmf.runtime.notation.View;
09:
10: /**
11: * @generated
12: */
13: public class ProcessEditPart extends DiagramEditPart {
14:
15: /**
16: * @generated
17: */
18: public final static String MODEL_ID = "New_process"; //$NON-NLS-1$
19:
20: /**
21: * @generated
22: */
23: public static final int VISUAL_ID = 1000;
24:
25: /**
26: * @generated
27: */
28: public ProcessEditPart(View view) {
29: super (view);
30: }
31:
32: /**
33: * @generated
34: */
35: protected void createDefaultEditPolicies() {
36: super .createDefaultEditPolicies();
37: installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
38: new ProcessItemSemanticEditPolicy());
39: installEditPolicy(EditPolicyRoles.CANONICAL_ROLE,
40: new ProcessCanonicalEditPolicy());
41: }
42: }
|