1 | /* |
2 | * Copyright 2009, SDQ, IPD, Uni Karlsruhe (TH) |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.resource.edit.parts; |
5 | |
6 | import org.eclipse.draw2d.Connection; |
7 | import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart; |
8 | import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart; |
9 | import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; |
10 | import org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnectionEx; |
11 | import org.eclipse.gmf.runtime.notation.View; |
12 | |
13 | import de.uka.ipd.sdq.pcm.gmf.resource.edit.policies.LinkingResourceConnectedResourceContainers_LinkingResourceItemSemanticEditPolicy; |
14 | |
15 | /** |
16 | * @generated |
17 | */ |
18 | public class LinkingResourceConnectedResourceContainers_LinkingResourceEditPart |
19 | extends ConnectionNodeEditPart implements ITreeBranchEditPart { |
20 | |
21 | /** |
22 | * @generated |
23 | */ |
24 | public static final int VISUAL_ID = 4002; |
25 | |
26 | /** |
27 | * @generated |
28 | */ |
29 | public LinkingResourceConnectedResourceContainers_LinkingResourceEditPart( |
30 | View view) { |
31 | super(view); |
32 | } |
33 | |
34 | /** |
35 | * @generated |
36 | */ |
37 | protected void createDefaultEditPolicies() { |
38 | super.createDefaultEditPolicies(); |
39 | installEditPolicy( |
40 | EditPolicyRoles.SEMANTIC_ROLE, |
41 | new LinkingResourceConnectedResourceContainers_LinkingResourceItemSemanticEditPolicy()); |
42 | } |
43 | |
44 | /** |
45 | * Creates figure for this edit part. |
46 | * |
47 | * Body of this method does not depend on settings in generation model |
48 | * so you may safely remove <i>generated</i> tag and modify it. |
49 | * |
50 | * @generated |
51 | */ |
52 | protected Connection createConnectionFigure() { |
53 | return new PolylineConnectionEx(); |
54 | } |
55 | |
56 | /** |
57 | * @generated |
58 | */ |
59 | public PolylineConnectionEx getPrimaryShape() { |
60 | return (PolylineConnectionEx) getFigure(); |
61 | } |
62 | |
63 | } |