1 | /* |
2 | * Copyright 2007, SDQ, IPD, University of Karlsruhe |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.usage.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.usage.edit.policies.UsageScenarioCanonicalEditPolicy; |
11 | import de.uka.ipd.sdq.pcm.gmf.usage.edit.policies.UsageScenarioItemSemanticEditPolicy; |
12 | |
13 | /** |
14 | * @generated |
15 | */ |
16 | public class UsageScenarioEditPart extends DiagramEditPart { |
17 | |
18 | /** |
19 | * @generated |
20 | */ |
21 | public final static String MODEL_ID = "PCM Usage Model"; //$NON-NLS-1$ |
22 | |
23 | /** |
24 | * @generated |
25 | */ |
26 | public static final int VISUAL_ID = 1000; |
27 | |
28 | /** |
29 | * @generated |
30 | */ |
31 | public UsageScenarioEditPart(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 UsageScenarioItemSemanticEditPolicy()); |
42 | installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, |
43 | new UsageScenarioCanonicalEditPolicy()); |
44 | // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.POPUPBAR_ROLE); |
45 | } |
46 | } |