1 | /* |
2 | * Copyright 2007, SDQ, IPD, U KA |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.allocation.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.allocation.edit.policies.AllocationCanonicalEditPolicy; |
11 | import de.uka.ipd.sdq.pcm.gmf.allocation.edit.policies.AllocationItemSemanticEditPolicy; |
12 | |
13 | /** |
14 | * @generated |
15 | */ |
16 | public class AllocationEditPart extends DiagramEditPart { |
17 | |
18 | /** |
19 | * @generated |
20 | */ |
21 | public final static String MODEL_ID = "allocation"; //$NON-NLS-1$ |
22 | |
23 | /** |
24 | * @generated |
25 | */ |
26 | public static final int VISUAL_ID = 1000; |
27 | |
28 | /** |
29 | * @generated |
30 | */ |
31 | public AllocationEditPart(View view) { |
32 | super(view); |
33 | } |
34 | |
35 | /** |
36 | * @generated |
37 | */ |
38 | protected void createDefaultEditPolicies() { |
39 | super.createDefaultEditPolicies(); |
40 | installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, |
41 | new AllocationItemSemanticEditPolicy()); |
42 | installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, |
43 | new AllocationCanonicalEditPolicy()); |
44 | // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.POPUPBAR_ROLE); |
45 | } |
46 | } |