01: package newprocess.diagram.edit.parts;
02:
03: import newprocess.diagram.edit.policies.AsyncActivityActorItemSemanticEditPolicy;
04:
05: import org.eclipse.draw2d.Connection;
06: import org.eclipse.draw2d.Graphics;
07: import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart;
08: import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
09: import org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx;
10: import org.eclipse.gmf.runtime.notation.View;
11:
12: /**
13: * @generated
14: */
15: public class AsyncActivityActorEditPart extends ConnectionNodeEditPart {
16:
17: /**
18: * @generated
19: */
20: public static final int VISUAL_ID = 4001;
21:
22: /**
23: * @generated
24: */
25: public AsyncActivityActorEditPart(View view) {
26: super (view);
27: }
28:
29: /**
30: * @generated
31: */
32: protected void createDefaultEditPolicies() {
33: super .createDefaultEditPolicies();
34: installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
35: new AsyncActivityActorItemSemanticEditPolicy());
36: }
37:
38: /**
39: * Creates figure for this edit part.
40: *
41: * Body of this method does not depend on settings in generation model
42: * so you may safely remove <i>generated</i> tag and modify it.
43: *
44: * @generated
45: */
46: protected Connection createConnectionFigure() {
47:
48: return new AsyncActivityActorConnectionFigure();
49: }
50:
51: /**
52: * @generated
53: */
54: public class AsyncActivityActorConnectionFigure extends
55: PolylineConnectionEx {
56:
57: /**
58: * @generated
59: */
60: public AsyncActivityActorConnectionFigure() {
61: this .setFill(true);
62: this .setFillXOR(false);
63: this .setOutline(true);
64: this .setOutlineXOR(false);
65: this .setLineWidth(1);
66: this.setLineStyle(Graphics.LINE_DASHDOTDOT);
67:
68: }
69:
70: }
71:
72: }
|