1 | /* |
2 | * Copyright 2007, SDQ, IPD, Uni Karlsruhe (TH) |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.composite.edit.parts; |
5 | |
6 | import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart; |
7 | import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles; |
8 | import org.eclipse.gmf.runtime.notation.View; |
9 | |
10 | import de.uka.ipd.sdq.pcm.gmf.composite.edit.policies.ComposedProvidingRequiringEntityCanonicalEditPolicy; |
11 | import de.uka.ipd.sdq.pcm.gmf.composite.edit.policies.ComposedProvidingRequiringEntityItemSemanticEditPolicy; |
12 | |
13 | /** |
14 | * Edit part for the outer edit part figure representation. |
15 | * The edit part containing the internal elements like assembly contexts and connectors |
16 | * is represented by |
17 | * @see ComposedProvidingRequiringEntity2EditPart |
18 | * @generated |
19 | */ |
20 | public class ComposedProvidingRequiringEntityEditPart extends DiagramEditPart { |
21 | |
22 | /** |
23 | * @generated |
24 | */ |
25 | public final static String MODEL_ID = "CompositeModel"; //$NON-NLS-1$ |
26 | |
27 | /** |
28 | * @generated |
29 | */ |
30 | public static final int VISUAL_ID = 1000; |
31 | |
32 | /** |
33 | * @generated |
34 | */ |
35 | public ComposedProvidingRequiringEntityEditPart(View view) { |
36 | super(view); |
37 | } |
38 | |
39 | /** |
40 | * @generated |
41 | */ |
42 | protected void createDefaultEditPolicies() { |
43 | super.createDefaultEditPolicies(); |
44 | installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, |
45 | new ComposedProvidingRequiringEntityItemSemanticEditPolicy()); |
46 | installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, |
47 | new ComposedProvidingRequiringEntityCanonicalEditPolicy()); |
48 | // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.POPUPBAR_ROLE); |
49 | } |
50 | } |