EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.gmf.seff.providers]

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelViewProvider.java]

nameclass, %method, %block, %line, %
PalladioComponentModelViewProvider.java0%   (0/1)0%   (0/66)0%   (0/5902)0%   (0/1979)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelViewProvider0%   (0/1)0%   (0/66)0%   (0/5902)0%   (0/1979)
<static initializer> 0%   (0/1)0%   (0/8)0%   (0/1)
PalladioComponentModelViewProvider (): void 0%   (0/1)0%   (0/3)0%   (0/1)
createAbstractActionSuccessor_AbstractAction_4001 (View, int, boolean, Prefer... 0%   (0/1)0%   (0/123)0%   (0/40)
createAcquireAction_2012 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/103)0%   (0/35)
createAcquireAction_3026 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/99)0%   (0/34)
createBranchAction_2005 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/113)0%   (0/39)
createBranchAction_3009 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/109)0%   (0/38)
createCollectionIteratorAction_2007 (EObject, View, int, boolean, Preferences... 0%   (0/1)0%   (0/109)0%   (0/39)
createCollectionIteratorAction_3013 (EObject, View, int, boolean, Preferences... 0%   (0/1)0%   (0/105)0%   (0/38)
createCompartment (View, String, boolean, boolean, boolean, boolean): Node 0%   (0/1)0%   (0/48)0%   (0/15)
createDiagram (IAdaptable, String, PreferencesHint): Diagram 0%   (0/1)0%   (0/22)0%   (0/6)
createEdge (IAdaptable, View, String, int, boolean, PreferencesHint): Edge 0%   (0/1)0%   (0/27)0%   (0/8)
createEmitEventAction_2013 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/113)0%   (0/39)
createEmitEventAction_3046 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/109)0%   (0/38)
createExternalCallAction_2003 (EObject, View, int, boolean, PreferencesHint):... 0%   (0/1)0%   (0/123)0%   (0/44)
createExternalCallAction_3012 (EObject, View, int, boolean, PreferencesHint):... 0%   (0/1)0%   (0/119)0%   (0/43)
createForkAction_2011 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/113)0%   (0/38)
createForkAction_3023 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/109)0%   (0/37)
createForkedBehaviour_3027 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/103)0%   (0/36)
createForkedBehaviour_3039 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/103)0%   (0/36)
createGuardedBranchTransition_3017 (EObject, View, int, boolean, PreferencesH... 0%   (0/1)0%   (0/105)0%   (0/37)
createInfrastructureCall_3053 (EObject, View, int, boolean, PreferencesHint):... 0%   (0/1)0%   (0/115)0%   (0/42)
createInternalAction_2006 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/133)0%   (0/46)
createInternalAction_3007 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/129)0%   (0/45)
createInternalFailureOccurrenceDescription_3050 (EObject, View, int, boolean,... 0%   (0/1)0%   (0/21)0%   (0/8)
createLabel (View, String): Node 0%   (0/1)0%   (0/13)0%   (0/4)
createLoopAction_2004 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/109)0%   (0/37)
createLoopAction_3006 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/105)0%   (0/36)
createNode (IAdaptable, View, String, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/410)0%   (0/107)
createParametricResourceDemand_3051 (EObject, View, int, boolean, Preferences... 0%   (0/1)0%   (0/21)0%   (0/7)
createProbabilisticBranchTransition_3010 (EObject, View, int, boolean, Prefer... 0%   (0/1)0%   (0/105)0%   (0/38)
createRecoveryActionBehaviourFailureHandlingAlternatives__RecoveryActionBehav... 0%   (0/1)0%   (0/123)0%   (0/40)
createRecoveryActionBehaviour_3058 (EObject, View, int, boolean, PreferencesH... 0%   (0/1)0%   (0/109)0%   (0/39)
createRecoveryAction_2016 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/113)0%   (0/39)
createRecoveryAction_3057 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/109)0%   (0/38)
createReleaseAction_2010 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/103)0%   (0/35)
createReleaseAction_3020 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/99)0%   (0/34)
createResourceDemandingBehaviour_3003 (EObject, View, int, boolean, Preferenc... 0%   (0/1)0%   (0/103)0%   (0/36)
createResourceDemandingBehaviour_3011 (EObject, View, int, boolean, Preferenc... 0%   (0/1)0%   (0/103)0%   (0/36)
createResourceDemandingBehaviour_3014 (EObject, View, int, boolean, Preferenc... 0%   (0/1)0%   (0/103)0%   (0/36)
createResourceDemandingBehaviour_3018 (EObject, View, int, boolean, Preferenc... 0%   (0/1)0%   (0/103)0%   (0/36)
createSetVariableAction_2008 (EObject, View, int, boolean, PreferencesHint): ... 0%   (0/1)0%   (0/113)0%   (0/38)
createSetVariableAction_3024 (EObject, View, int, boolean, PreferencesHint): ... 0%   (0/1)0%   (0/109)0%   (0/38)
createStartAction_2001 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/105)0%   (0/32)
createStartAction_3004 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/101)0%   (0/31)
createStopAction_2002 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/97)0%   (0/33)
createStopAction_3005 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/93)0%   (0/32)
createSynchronisationPoint_3038 (EObject, View, int, boolean, PreferencesHint... 0%   (0/1)0%   (0/103)0%   (0/36)
createVariableCharacterisation_3033 (EObject, View, int, boolean, Preferences... 0%   (0/1)0%   (0/21)0%   (0/7)
createVariableCharacterisation_3035 (EObject, View, int, boolean, Preferences... 0%   (0/1)0%   (0/21)0%   (0/7)
createVariableCharacterisation_3037 (EObject, View, int, boolean, Preferences... 0%   (0/1)0%   (0/21)0%   (0/7)
createVariableCharacterisation_3048 (EObject, View, int, boolean, Preferences... 0%   (0/1)0%   (0/21)0%   (0/7)
createVariableCharacterisation_3055 (EObject, View, int, boolean, Preferences... 0%   (0/1)0%   (0/21)0%   (0/7)
createVariableUsage_3036 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/117)0%   (0/37)
createVariableUsage_3042 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/117)0%   (0/37)
createVariableUsage_3047 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/117)0%   (0/37)
createVariableUsage_3049 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/117)0%   (0/37)
createVariableUsage_3054 (EObject, View, int, boolean, PreferencesHint): Node 0%   (0/1)0%   (0/117)0%   (0/37)
getSemanticElement (IAdaptable): EObject 0%   (0/1)0%   (0/18)0%   (0/7)
getSemanticElementType (IAdaptable): IElementType 0%   (0/1)0%   (0/9)0%   (0/3)
provides (CreateDiagramViewOperation): boolean 0%   (0/1)0%   (0/16)0%   (0/5)
provides (CreateEdgeViewOperation): boolean 0%   (0/1)0%   (0/47)0%   (0/18)
provides (CreateNodeViewOperation): boolean 0%   (0/1)0%   (0/238)0%   (0/85)
provides (CreateViewForKindOperation): boolean 0%   (0/1)0%   (0/2)0%   (0/1)
provides (IOperation): boolean 0%   (0/1)0%   (0/43)0%   (0/10)
stampShortcut (View, Node): void 0%   (0/1)0%   (0/23)0%   (0/10)

1/*
2 *Copyright 2006 SDQ Research Group, University of Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.seff.providers;
5 
6import java.util.ArrayList;
7 
8import org.eclipse.core.runtime.IAdaptable;
9import org.eclipse.emf.ecore.EAnnotation;
10import org.eclipse.emf.ecore.EObject;
11import org.eclipse.emf.ecore.EcoreFactory;
12import org.eclipse.emf.transaction.util.TransactionUtil;
13import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
14import org.eclipse.gmf.runtime.common.core.service.IOperation;
15import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
16import org.eclipse.gmf.runtime.diagram.core.providers.IViewProvider;
17import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation;
18import org.eclipse.gmf.runtime.diagram.core.services.view.CreateEdgeViewOperation;
19import org.eclipse.gmf.runtime.diagram.core.services.view.CreateNodeViewOperation;
20import org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewForKindOperation;
21import org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewOperation;
22import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
23import org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants;
24import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
25import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil;
26import org.eclipse.gmf.runtime.emf.type.core.IElementType;
27import org.eclipse.gmf.runtime.emf.type.core.IHintedType;
28import org.eclipse.gmf.runtime.notation.Connector;
29import org.eclipse.gmf.runtime.notation.DecorationNode;
30import org.eclipse.gmf.runtime.notation.Diagram;
31import org.eclipse.gmf.runtime.notation.Edge;
32import org.eclipse.gmf.runtime.notation.FontStyle;
33import org.eclipse.gmf.runtime.notation.MeasurementUnit;
34import org.eclipse.gmf.runtime.notation.Node;
35import org.eclipse.gmf.runtime.notation.NotationFactory;
36import org.eclipse.gmf.runtime.notation.NotationPackage;
37import org.eclipse.gmf.runtime.notation.RelativeBendpoints;
38import org.eclipse.gmf.runtime.notation.Routing;
39import org.eclipse.gmf.runtime.notation.Shape;
40import org.eclipse.gmf.runtime.notation.TitleStyle;
41import org.eclipse.gmf.runtime.notation.View;
42import org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint;
43import org.eclipse.jface.preference.IPreferenceStore;
44import org.eclipse.jface.preference.PreferenceConverter;
45import org.eclipse.swt.SWT;
46import org.eclipse.swt.graphics.FontData;
47 
48import de.uka.ipd.sdq.pcm.gmf.seff.edit.parts.*;
49import de.uka.ipd.sdq.pcm.gmf.seff.part.PalladioComponentModelVisualIDRegistry;
50 
51/**
52 * @generated
53 */
54public class PalladioComponentModelViewProvider extends AbstractProvider
55                implements IViewProvider {
56 
57        /**
58         * @generated
59         */
60        public final boolean provides(IOperation operation) {
61                if (operation instanceof CreateViewForKindOperation) {
62                        return provides((CreateViewForKindOperation) operation);
63                }
64                assert operation instanceof CreateViewOperation;
65                if (operation instanceof CreateDiagramViewOperation) {
66                        return provides((CreateDiagramViewOperation) operation);
67                } else if (operation instanceof CreateEdgeViewOperation) {
68                        return provides((CreateEdgeViewOperation) operation);
69                } else if (operation instanceof CreateNodeViewOperation) {
70                        return provides((CreateNodeViewOperation) operation);
71                }
72                return false;
73        }
74 
75        /**
76         * @generated
77         */
78        protected boolean provides(CreateViewForKindOperation op) {
79                /*
80                 if (op.getViewKind() == Node.class)
81                 return getNodeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
82                 if (op.getViewKind() == Edge.class)
83                 return getEdgeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
84                 */
85                return true;
86        }
87 
88        /**
89         * @generated
90         */
91        protected boolean provides(CreateDiagramViewOperation op) {
92                return ResourceDemandingSEFFEditPart.MODEL_ID.equals(op
93                                .getSemanticHint())
94                                && PalladioComponentModelVisualIDRegistry
95                                                .getDiagramVisualID(getSemanticElement(op
96                                                                .getSemanticAdapter())) != -1;
97        }
98 
99        /**
100         * @generated
101         */
102        protected boolean provides(CreateNodeViewOperation op) {
103                if (op.getContainerView() == null) {
104                        return false;
105                }
106                IElementType elementType = getSemanticElementType(op
107                                .getSemanticAdapter());
108                EObject domainElement = getSemanticElement(op.getSemanticAdapter());
109                int visualID;
110                if (op.getSemanticHint() == null) {
111                        // Semantic hint is not specified. Can be a result of call from CanonicalEditPolicy.
112                        // In this situation there should be NO elementType, visualID will be determined
113                        // by VisualIDRegistry.getNodeVisualID() for domainElement.
114                        if (elementType != null || domainElement == null) {
115                                return false;
116                        }
117                        visualID = PalladioComponentModelVisualIDRegistry.getNodeVisualID(
118                                        op.getContainerView(), domainElement);
119                } else {
120                        visualID = PalladioComponentModelVisualIDRegistry.getVisualID(op
121                                        .getSemanticHint());
122                        if (elementType != null) {
123                                if (!PalladioComponentModelElementTypes
124                                                .isKnownElementType(elementType)
125                                                || (!(elementType instanceof IHintedType))) {
126                                        return false; // foreign element type
127                                }
128                                String elementTypeHint = ((IHintedType) elementType)
129                                                .getSemanticHint();
130                                if (!op.getSemanticHint().equals(elementTypeHint)) {
131                                        return false; // if semantic hint is specified it should be the same as in element type
132                                }
133                                if (domainElement != null
134                                                && visualID != PalladioComponentModelVisualIDRegistry
135                                                                .getNodeVisualID(op.getContainerView(),
136                                                                                domainElement)) {
137                                        return false; // visual id for node EClass should match visual id from element type
138                                }
139                        } else {
140                                if (!ResourceDemandingSEFFEditPart.MODEL_ID
141                                                .equals(PalladioComponentModelVisualIDRegistry
142                                                                .getModelID(op.getContainerView()))) {
143                                        return false; // foreign diagram
144                                }
145                                switch (visualID) {
146                                case StartActionEditPart.VISUAL_ID:
147                                case StopActionEditPart.VISUAL_ID:
148                                case ExternalCallActionEditPart.VISUAL_ID:
149                                case EmitEventActionEditPart.VISUAL_ID:
150                                case LoopActionEditPart.VISUAL_ID:
151                                case VariableUsageEditPart.VISUAL_ID:
152                                case VariableCharacterisationEditPart.VISUAL_ID:
153                                case ResourceDemandingBehaviourEditPart.VISUAL_ID:
154                                case InternalAction2EditPart.VISUAL_ID:
155                                case ParametricResourceDemandEditPart.VISUAL_ID:
156                                case InternalFailureOccurrenceDescriptionEditPart.VISUAL_ID:
157                                case InfrastructureCallEditPart.VISUAL_ID:
158                                case BranchAction2EditPart.VISUAL_ID:
159                                case ProbabilisticBranchTransitionEditPart.VISUAL_ID:
160                                case AcquireAction2EditPart.VISUAL_ID:
161                                case ReleaseAction2EditPart.VISUAL_ID:
162                                case ForkAction2EditPart.VISUAL_ID:
163                                case ForkedBehaviourEditPart.VISUAL_ID:
164                                case CollectionIteratorAction2EditPart.VISUAL_ID:
165                                case RecoveryAction2EditPart.VISUAL_ID:
166                                case RecoveryActionBehaviourEditPart.VISUAL_ID:
167                                case SetVariableAction2EditPart.VISUAL_ID:
168                                case SynchronisationPointEditPart.VISUAL_ID:
169                                case GuardedBranchTransitionEditPart.VISUAL_ID:
170                                case BranchActionEditPart.VISUAL_ID:
171                                case InternalActionEditPart.VISUAL_ID:
172                                case CollectionIteratorActionEditPart.VISUAL_ID:
173                                case SetVariableActionEditPart.VISUAL_ID:
174                                case AcquireActionEditPart.VISUAL_ID:
175                                case ReleaseActionEditPart.VISUAL_ID:
176                                case ForkActionEditPart.VISUAL_ID:
177                                case RecoveryActionEditPart.VISUAL_ID:
178                                case VariableUsage2EditPart.VISUAL_ID:
179                                case VariableCharacterisation2EditPart.VISUAL_ID:
180                                case VariableUsage4EditPart.VISUAL_ID:
181                                case VariableCharacterisation3EditPart.VISUAL_ID:
182                                case StartAction2EditPart.VISUAL_ID:
183                                case StopAction2EditPart.VISUAL_ID:
184                                case LoopAction2EditPart.VISUAL_ID:
185                                case VariableUsage5EditPart.VISUAL_ID:
186                                case VariableCharacterisation4EditPart.VISUAL_ID:
187                                case ResourceDemandingBehaviour2EditPart.VISUAL_ID:
188                                case ExternalCallAction2EditPart.VISUAL_ID:
189                                case EmitEventAction2EditPart.VISUAL_ID:
190                                case ResourceDemandingBehaviour3EditPart.VISUAL_ID:
191                                case VariableUsage3EditPart.VISUAL_ID:
192                                case VariableCharacterisation5EditPart.VISUAL_ID:
193                                case ForkedBehaviour2EditPart.VISUAL_ID:
194                                case ResourceDemandingBehaviour4EditPart.VISUAL_ID:
195                                        if (domainElement == null
196                                                        || visualID != PalladioComponentModelVisualIDRegistry
197                                                                        .getNodeVisualID(op.getContainerView(),
198                                                                                        domainElement)) {
199                                                return false; // visual id in semantic hint should match visual id for domain element
200                                        }
201                                        break;
202                                default:
203                                        return false;
204                                }
205                        }
206                }
207                return StartActionEditPart.VISUAL_ID == visualID
208                                || StopActionEditPart.VISUAL_ID == visualID
209                                || ExternalCallActionEditPart.VISUAL_ID == visualID
210                                || EmitEventActionEditPart.VISUAL_ID == visualID
211                                || LoopActionEditPart.VISUAL_ID == visualID
212                                || BranchActionEditPart.VISUAL_ID == visualID
213                                || InternalActionEditPart.VISUAL_ID == visualID
214                                || CollectionIteratorActionEditPart.VISUAL_ID == visualID
215                                || SetVariableActionEditPart.VISUAL_ID == visualID
216                                || AcquireActionEditPart.VISUAL_ID == visualID
217                                || ReleaseActionEditPart.VISUAL_ID == visualID
218                                || ForkActionEditPart.VISUAL_ID == visualID
219                                || RecoveryActionEditPart.VISUAL_ID == visualID
220                                || VariableUsageEditPart.VISUAL_ID == visualID
221                                || VariableCharacterisationEditPart.VISUAL_ID == visualID
222                                || VariableUsage2EditPart.VISUAL_ID == visualID
223                                || VariableCharacterisation2EditPart.VISUAL_ID == visualID
224                                || VariableUsage4EditPart.VISUAL_ID == visualID
225                                || VariableCharacterisation3EditPart.VISUAL_ID == visualID
226                                || ResourceDemandingBehaviourEditPart.VISUAL_ID == visualID
227                                || StartAction2EditPart.VISUAL_ID == visualID
228                                || StopAction2EditPart.VISUAL_ID == visualID
229                                || LoopAction2EditPart.VISUAL_ID == visualID
230                                || InternalAction2EditPart.VISUAL_ID == visualID
231                                || ParametricResourceDemandEditPart.VISUAL_ID == visualID
232                                || InternalFailureOccurrenceDescriptionEditPart.VISUAL_ID == visualID
233                                || InfrastructureCallEditPart.VISUAL_ID == visualID
234                                || VariableUsage5EditPart.VISUAL_ID == visualID
235                                || VariableCharacterisation4EditPart.VISUAL_ID == visualID
236                                || BranchAction2EditPart.VISUAL_ID == visualID
237                                || ProbabilisticBranchTransitionEditPart.VISUAL_ID == visualID
238                                || ResourceDemandingBehaviour2EditPart.VISUAL_ID == visualID
239                                || ExternalCallAction2EditPart.VISUAL_ID == visualID
240                                || EmitEventAction2EditPart.VISUAL_ID == visualID
241                                || AcquireAction2EditPart.VISUAL_ID == visualID
242                                || ReleaseAction2EditPart.VISUAL_ID == visualID
243                                || ForkAction2EditPart.VISUAL_ID == visualID
244                                || ForkedBehaviourEditPart.VISUAL_ID == visualID
245                                || CollectionIteratorAction2EditPart.VISUAL_ID == visualID
246                                || ResourceDemandingBehaviour3EditPart.VISUAL_ID == visualID
247                                || RecoveryAction2EditPart.VISUAL_ID == visualID
248                                || RecoveryActionBehaviourEditPart.VISUAL_ID == visualID
249                                || SetVariableAction2EditPart.VISUAL_ID == visualID
250                                || VariableUsage3EditPart.VISUAL_ID == visualID
251                                || VariableCharacterisation5EditPart.VISUAL_ID == visualID
252                                || SynchronisationPointEditPart.VISUAL_ID == visualID
253                                || ForkedBehaviour2EditPart.VISUAL_ID == visualID
254                                || GuardedBranchTransitionEditPart.VISUAL_ID == visualID
255                                || ResourceDemandingBehaviour4EditPart.VISUAL_ID == visualID;
256        }
257 
258        /**
259         * @generated
260         */
261        protected boolean provides(CreateEdgeViewOperation op) {
262                IElementType elementType = getSemanticElementType(op
263                                .getSemanticAdapter());
264                if (!PalladioComponentModelElementTypes.isKnownElementType(elementType)
265                                || (!(elementType instanceof IHintedType))) {
266                        return false; // foreign element type
267                }
268                String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
269                if (elementTypeHint == null
270                                || (op.getSemanticHint() != null && !elementTypeHint.equals(op
271                                                .getSemanticHint()))) {
272                        return false; // our hint is visual id and must be specified, and it should be the same as in element type
273                }
274                int visualID = PalladioComponentModelVisualIDRegistry
275                                .getVisualID(elementTypeHint);
276                EObject domainElement = getSemanticElement(op.getSemanticAdapter());
277                if (domainElement != null
278                                && visualID != PalladioComponentModelVisualIDRegistry
279                                                .getLinkWithClassVisualID(domainElement)) {
280                        return false; // visual id for link EClass should match visual id from element type
281                }
282                return true;
283        }
284 
285        /**
286         * @generated
287         */
288        public Diagram createDiagram(IAdaptable semanticAdapter,
289                        String diagramKind, PreferencesHint preferencesHint) {
290                Diagram diagram = NotationFactory.eINSTANCE.createDiagram();
291                diagram.getStyles().add(NotationFactory.eINSTANCE.createDiagramStyle());
292                diagram.setType(ResourceDemandingSEFFEditPart.MODEL_ID);
293                diagram.setElement(getSemanticElement(semanticAdapter));
294                diagram.setMeasurementUnit(MeasurementUnit.PIXEL_LITERAL);
295                return diagram;
296        }
297 
298        /**
299         * @generated
300         */
301        public Node createNode(IAdaptable semanticAdapter, View containerView,
302                        String semanticHint, int index, boolean persisted,
303                        PreferencesHint preferencesHint) {
304                final EObject domainElement = getSemanticElement(semanticAdapter);
305                final int visualID;
306                if (semanticHint == null) {
307                        visualID = PalladioComponentModelVisualIDRegistry.getNodeVisualID(
308                                        containerView, domainElement);
309                } else {
310                        visualID = PalladioComponentModelVisualIDRegistry
311                                        .getVisualID(semanticHint);
312                }
313                switch (visualID) {
314                case StartActionEditPart.VISUAL_ID:
315                        return createStartAction_2001(domainElement, containerView, index,
316                                        persisted, preferencesHint);
317                case StopActionEditPart.VISUAL_ID:
318                        return createStopAction_2002(domainElement, containerView, index,
319                                        persisted, preferencesHint);
320                case ExternalCallActionEditPart.VISUAL_ID:
321                        return createExternalCallAction_2003(domainElement, containerView,
322                                        index, persisted, preferencesHint);
323                case EmitEventActionEditPart.VISUAL_ID:
324                        return createEmitEventAction_2013(domainElement, containerView,
325                                        index, persisted, preferencesHint);
326                case LoopActionEditPart.VISUAL_ID:
327                        return createLoopAction_2004(domainElement, containerView, index,
328                                        persisted, preferencesHint);
329                case BranchActionEditPart.VISUAL_ID:
330                        return createBranchAction_2005(domainElement, containerView, index,
331                                        persisted, preferencesHint);
332                case InternalActionEditPart.VISUAL_ID:
333                        return createInternalAction_2006(domainElement, containerView,
334                                        index, persisted, preferencesHint);
335                case CollectionIteratorActionEditPart.VISUAL_ID:
336                        return createCollectionIteratorAction_2007(domainElement,
337                                        containerView, index, persisted, preferencesHint);
338                case SetVariableActionEditPart.VISUAL_ID:
339                        return createSetVariableAction_2008(domainElement, containerView,
340                                        index, persisted, preferencesHint);
341                case AcquireActionEditPart.VISUAL_ID:
342                        return createAcquireAction_2012(domainElement, containerView,
343                                        index, persisted, preferencesHint);
344                case ReleaseActionEditPart.VISUAL_ID:
345                        return createReleaseAction_2010(domainElement, containerView,
346                                        index, persisted, preferencesHint);
347                case ForkActionEditPart.VISUAL_ID:
348                        return createForkAction_2011(domainElement, containerView, index,
349                                        persisted, preferencesHint);
350                case RecoveryActionEditPart.VISUAL_ID:
351                        return createRecoveryAction_2016(domainElement, containerView,
352                                        index, persisted, preferencesHint);
353                case VariableUsageEditPart.VISUAL_ID:
354                        return createVariableUsage_3042(domainElement, containerView,
355                                        index, persisted, preferencesHint);
356                case VariableCharacterisationEditPart.VISUAL_ID:
357                        return createVariableCharacterisation_3033(domainElement,
358                                        containerView, index, persisted, preferencesHint);
359                case VariableUsage2EditPart.VISUAL_ID:
360                        return createVariableUsage_3049(domainElement, containerView,
361                                        index, persisted, preferencesHint);
362                case VariableCharacterisation2EditPart.VISUAL_ID:
363                        return createVariableCharacterisation_3035(domainElement,
364                                        containerView, index, persisted, preferencesHint);
365                case VariableUsage4EditPart.VISUAL_ID:
366                        return createVariableUsage_3047(domainElement, containerView,
367                                        index, persisted, preferencesHint);
368                case VariableCharacterisation3EditPart.VISUAL_ID:
369                        return createVariableCharacterisation_3037(domainElement,
370                                        containerView, index, persisted, preferencesHint);
371                case ResourceDemandingBehaviourEditPart.VISUAL_ID:
372                        return createResourceDemandingBehaviour_3003(domainElement,
373                                        containerView, index, persisted, preferencesHint);
374                case StartAction2EditPart.VISUAL_ID:
375                        return createStartAction_3004(domainElement, containerView, index,
376                                        persisted, preferencesHint);
377                case StopAction2EditPart.VISUAL_ID:
378                        return createStopAction_3005(domainElement, containerView, index,
379                                        persisted, preferencesHint);
380                case LoopAction2EditPart.VISUAL_ID:
381                        return createLoopAction_3006(domainElement, containerView, index,
382                                        persisted, preferencesHint);
383                case InternalAction2EditPart.VISUAL_ID:
384                        return createInternalAction_3007(domainElement, containerView,
385                                        index, persisted, preferencesHint);
386                case ParametricResourceDemandEditPart.VISUAL_ID:
387                        return createParametricResourceDemand_3051(domainElement,
388                                        containerView, index, persisted, preferencesHint);
389                case InternalFailureOccurrenceDescriptionEditPart.VISUAL_ID:
390                        return createInternalFailureOccurrenceDescription_3050(
391                                        domainElement, containerView, index, persisted,
392                                        preferencesHint);
393                case InfrastructureCallEditPart.VISUAL_ID:
394                        return createInfrastructureCall_3053(domainElement, containerView,
395                                        index, persisted, preferencesHint);
396                case VariableUsage5EditPart.VISUAL_ID:
397                        return createVariableUsage_3054(domainElement, containerView,
398                                        index, persisted, preferencesHint);
399                case VariableCharacterisation4EditPart.VISUAL_ID:
400                        return createVariableCharacterisation_3048(domainElement,
401                                        containerView, index, persisted, preferencesHint);
402                case BranchAction2EditPart.VISUAL_ID:
403                        return createBranchAction_3009(domainElement, containerView, index,
404                                        persisted, preferencesHint);
405                case ProbabilisticBranchTransitionEditPart.VISUAL_ID:
406                        return createProbabilisticBranchTransition_3010(domainElement,
407                                        containerView, index, persisted, preferencesHint);
408                case ResourceDemandingBehaviour2EditPart.VISUAL_ID:
409                        return createResourceDemandingBehaviour_3011(domainElement,
410                                        containerView, index, persisted, preferencesHint);
411                case ExternalCallAction2EditPart.VISUAL_ID:
412                        return createExternalCallAction_3012(domainElement, containerView,
413                                        index, persisted, preferencesHint);
414                case EmitEventAction2EditPart.VISUAL_ID:
415                        return createEmitEventAction_3046(domainElement, containerView,
416                                        index, persisted, preferencesHint);
417                case AcquireAction2EditPart.VISUAL_ID:
418                        return createAcquireAction_3026(domainElement, containerView,
419                                        index, persisted, preferencesHint);
420                case ReleaseAction2EditPart.VISUAL_ID:
421                        return createReleaseAction_3020(domainElement, containerView,
422                                        index, persisted, preferencesHint);
423                case ForkAction2EditPart.VISUAL_ID:
424                        return createForkAction_3023(domainElement, containerView, index,
425                                        persisted, preferencesHint);
426                case ForkedBehaviourEditPart.VISUAL_ID:
427                        return createForkedBehaviour_3027(domainElement, containerView,
428                                        index, persisted, preferencesHint);
429                case CollectionIteratorAction2EditPart.VISUAL_ID:
430                        return createCollectionIteratorAction_3013(domainElement,
431                                        containerView, index, persisted, preferencesHint);
432                case ResourceDemandingBehaviour3EditPart.VISUAL_ID:
433                        return createResourceDemandingBehaviour_3014(domainElement,
434                                        containerView, index, persisted, preferencesHint);
435                case RecoveryAction2EditPart.VISUAL_ID:
436                        return createRecoveryAction_3057(domainElement, containerView,
437                                        index, persisted, preferencesHint);
438                case RecoveryActionBehaviourEditPart.VISUAL_ID:
439                        return createRecoveryActionBehaviour_3058(domainElement,
440                                        containerView, index, persisted, preferencesHint);
441                case SetVariableAction2EditPart.VISUAL_ID:
442                        return createSetVariableAction_3024(domainElement, containerView,
443                                        index, persisted, preferencesHint);
444                case VariableUsage3EditPart.VISUAL_ID:
445                        return createVariableUsage_3036(domainElement, containerView,
446                                        index, persisted, preferencesHint);
447                case VariableCharacterisation5EditPart.VISUAL_ID:
448                        return createVariableCharacterisation_3055(domainElement,
449                                        containerView, index, persisted, preferencesHint);
450                case SynchronisationPointEditPart.VISUAL_ID:
451                        return createSynchronisationPoint_3038(domainElement,
452                                        containerView, index, persisted, preferencesHint);
453                case ForkedBehaviour2EditPart.VISUAL_ID:
454                        return createForkedBehaviour_3039(domainElement, containerView,
455                                        index, persisted, preferencesHint);
456                case GuardedBranchTransitionEditPart.VISUAL_ID:
457                        return createGuardedBranchTransition_3017(domainElement,
458                                        containerView, index, persisted, preferencesHint);
459                case ResourceDemandingBehaviour4EditPart.VISUAL_ID:
460                        return createResourceDemandingBehaviour_3018(domainElement,
461                                        containerView, index, persisted, preferencesHint);
462                }
463                // can't happen, provided #provides(CreateNodeViewOperation) is correct
464                return null;
465        }
466 
467        /**
468         * @generated
469         */
470        public Edge createEdge(IAdaptable semanticAdapter, View containerView,
471                        String semanticHint, int index, boolean persisted,
472                        PreferencesHint preferencesHint) {
473                IElementType elementType = getSemanticElementType(semanticAdapter);
474                String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
475                switch (PalladioComponentModelVisualIDRegistry
476                                .getVisualID(elementTypeHint)) {
477                case AbstractActionSuccessor_AbstractActionEditPart.VISUAL_ID:
478                        return createAbstractActionSuccessor_AbstractAction_4001(
479                                        containerView, index, persisted, preferencesHint);
480                case RecoveryActionBehaviourFailureHandlingAlternatives__RecoveryActionBehaviourEditPart.VISUAL_ID:
481                        return createRecoveryActionBehaviourFailureHandlingAlternatives__RecoveryActionBehaviour_4004(
482                                        containerView, index, persisted, preferencesHint);
483                }
484                // can never happen, provided #provides(CreateEdgeViewOperation) is correct
485                return null;
486        }
487 
488        /**
489         * @generated
490         */
491        public Node createStartAction_2001(EObject domainElement,
492                        View containerView, int index, boolean persisted,
493                        PreferencesHint preferencesHint) {
494                Node node = NotationFactory.eINSTANCE.createNode();
495                node.getStyles()
496                                .add(NotationFactory.eINSTANCE.createDescriptionStyle());
497                node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
498                node.getStyles().add(NotationFactory.eINSTANCE.createLineStyle());
499                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
500                node.setType(PalladioComponentModelVisualIDRegistry
501                                .getType(StartActionEditPart.VISUAL_ID));
502                ViewUtil.insertChildView(containerView, node, index, persisted);
503                node.setElement(domainElement);
504                stampShortcut(containerView, node);
505                // initializeFromPreferences 
506                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
507                                .getPreferenceStore();
508 
509                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
510                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
511                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
512                                .getLineStyle_LineColor(), FigureUtilities
513                                .RGBToInteger(lineRGB));
514                FontStyle nodeFontStyle = (FontStyle) node
515                                .getStyle(NotationPackage.Literals.FONT_STYLE);
516                if (nodeFontStyle != null) {
517                        FontData fontData = PreferenceConverter.getFontData(prefStore,
518                                        IPreferenceConstants.PREF_DEFAULT_FONT);
519                        nodeFontStyle.setFontName(fontData.getName());
520                        nodeFontStyle.setFontHeight(fontData.getHeight());
521                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
522                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
523                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
524                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
525                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
526                                        .intValue());
527                }
528                return node;
529        }
530 
531        /**
532         * @generated
533         */
534        public Node createStopAction_2002(EObject domainElement,
535                        View containerView, int index, boolean persisted,
536                        PreferencesHint preferencesHint) {
537                Shape node = NotationFactory.eINSTANCE.createShape();
538                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
539                node.setType(PalladioComponentModelVisualIDRegistry
540                                .getType(StopActionEditPart.VISUAL_ID));
541                ViewUtil.insertChildView(containerView, node, index, persisted);
542                node.setElement(domainElement);
543                stampShortcut(containerView, node);
544                // initializeFromPreferences 
545                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
546                                .getPreferenceStore();
547 
548                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
549                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
550                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
551                                .getLineStyle_LineColor(), FigureUtilities
552                                .RGBToInteger(lineRGB));
553                FontStyle nodeFontStyle = (FontStyle) node
554                                .getStyle(NotationPackage.Literals.FONT_STYLE);
555                if (nodeFontStyle != null) {
556                        FontData fontData = PreferenceConverter.getFontData(prefStore,
557                                        IPreferenceConstants.PREF_DEFAULT_FONT);
558                        nodeFontStyle.setFontName(fontData.getName());
559                        nodeFontStyle.setFontHeight(fontData.getHeight());
560                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
561                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
562                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
563                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
564                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
565                                        .intValue());
566                }
567                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
568                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
569                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
570                                .getFillStyle_FillColor(), FigureUtilities
571                                .RGBToInteger(fillRGB));
572                return node;
573        }
574 
575        /**
576         * @generated
577         */
578        public Node createExternalCallAction_2003(EObject domainElement,
579                        View containerView, int index, boolean persisted,
580                        PreferencesHint preferencesHint) {
581                Shape node = NotationFactory.eINSTANCE.createShape();
582                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
583                node.setType(PalladioComponentModelVisualIDRegistry
584                                .getType(ExternalCallActionEditPart.VISUAL_ID));
585                ViewUtil.insertChildView(containerView, node, index, persisted);
586                node.setElement(domainElement);
587                stampShortcut(containerView, node);
588                // initializeFromPreferences 
589                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
590                                .getPreferenceStore();
591 
592                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
593                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
594                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
595                                .getLineStyle_LineColor(), FigureUtilities
596                                .RGBToInteger(lineRGB));
597                FontStyle nodeFontStyle = (FontStyle) node
598                                .getStyle(NotationPackage.Literals.FONT_STYLE);
599                if (nodeFontStyle != null) {
600                        FontData fontData = PreferenceConverter.getFontData(prefStore,
601                                        IPreferenceConstants.PREF_DEFAULT_FONT);
602                        nodeFontStyle.setFontName(fontData.getName());
603                        nodeFontStyle.setFontHeight(fontData.getHeight());
604                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
605                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
606                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
607                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
608                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
609                                        .intValue());
610                }
611                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
612                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
613                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
614                                .getFillStyle_FillColor(), FigureUtilities
615                                .RGBToInteger(fillRGB));
616                Node label5002 = createLabel(
617                                node,
618                                PalladioComponentModelVisualIDRegistry
619                                                .getType(ExternalCallActionEntityNameEditPart.VISUAL_ID));
620                createCompartment(
621                                node,
622                                PalladioComponentModelVisualIDRegistry
623                                                .getType(ExternalCallActionInputVariableUsageEditPart.VISUAL_ID),
624                                true, true, true, true);
625                createCompartment(
626                                node,
627                                PalladioComponentModelVisualIDRegistry
628                                                .getType(ExternalCallActionOutputVariableUsageEditPart.VISUAL_ID),
629                                true, true, true, true);
630                return node;
631        }
632 
633        /**
634         * @generated
635         */
636        public Node createEmitEventAction_2013(EObject domainElement,
637                        View containerView, int index, boolean persisted,
638                        PreferencesHint preferencesHint) {
639                Shape node = NotationFactory.eINSTANCE.createShape();
640                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
641                node.setType(PalladioComponentModelVisualIDRegistry
642                                .getType(EmitEventActionEditPart.VISUAL_ID));
643                ViewUtil.insertChildView(containerView, node, index, persisted);
644                node.setElement(domainElement);
645                stampShortcut(containerView, node);
646                // initializeFromPreferences 
647                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
648                                .getPreferenceStore();
649 
650                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
651                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
652                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
653                                .getLineStyle_LineColor(), FigureUtilities
654                                .RGBToInteger(lineRGB));
655                FontStyle nodeFontStyle = (FontStyle) node
656                                .getStyle(NotationPackage.Literals.FONT_STYLE);
657                if (nodeFontStyle != null) {
658                        FontData fontData = PreferenceConverter.getFontData(prefStore,
659                                        IPreferenceConstants.PREF_DEFAULT_FONT);
660                        nodeFontStyle.setFontName(fontData.getName());
661                        nodeFontStyle.setFontHeight(fontData.getHeight());
662                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
663                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
664                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
665                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
666                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
667                                        .intValue());
668                }
669                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
670                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
671                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
672                                .getFillStyle_FillColor(), FigureUtilities
673                                .RGBToInteger(fillRGB));
674                Node label5046 = createLabel(node,
675                                PalladioComponentModelVisualIDRegistry
676                                                .getType(EmitEventActionEntityNameEditPart.VISUAL_ID));
677                createCompartment(
678                                node,
679                                PalladioComponentModelVisualIDRegistry
680                                                .getType(EmitEventActionInputVariableUsageEventEditPart.VISUAL_ID),
681                                true, true, true, true);
682                return node;
683        }
684 
685        /**
686         * @generated
687         */
688        public Node createLoopAction_2004(EObject domainElement,
689                        View containerView, int index, boolean persisted,
690                        PreferencesHint preferencesHint) {
691                Shape node = NotationFactory.eINSTANCE.createShape();
692                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
693                node.setType(PalladioComponentModelVisualIDRegistry
694                                .getType(LoopActionEditPart.VISUAL_ID));
695                ViewUtil.insertChildView(containerView, node, index, persisted);
696                node.setElement(domainElement);
697                stampShortcut(containerView, node);
698                // initializeFromPreferences 
699                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
700                                .getPreferenceStore();
701 
702                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
703                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
704                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
705                                .getLineStyle_LineColor(), FigureUtilities
706                                .RGBToInteger(lineRGB));
707                FontStyle nodeFontStyle = (FontStyle) node
708                                .getStyle(NotationPackage.Literals.FONT_STYLE);
709                if (nodeFontStyle != null) {
710                        FontData fontData = PreferenceConverter.getFontData(prefStore,
711                                        IPreferenceConstants.PREF_DEFAULT_FONT);
712                        nodeFontStyle.setFontName(fontData.getName());
713                        nodeFontStyle.setFontHeight(fontData.getHeight());
714                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
715                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
716                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
717                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
718                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
719                                        .intValue());
720                }
721                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
722                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
723                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
724                                .getFillStyle_FillColor(), FigureUtilities
725                                .RGBToInteger(fillRGB));
726                Node label5009 = createLabel(node,
727                                PalladioComponentModelVisualIDRegistry
728                                                .getType(LoopActionEntityNameEditPart.VISUAL_ID));
729                Node label5010 = createLabel(node,
730                                PalladioComponentModelVisualIDRegistry
731                                                .getType(LoopIterationsLabelEditPart.VISUAL_ID));
732                return node;
733        }
734 
735        /**
736         * @generated
737         */
738        public Node createBranchAction_2005(EObject domainElement,
739                        View containerView, int index, boolean persisted,
740                        PreferencesHint preferencesHint) {
741                Shape node = NotationFactory.eINSTANCE.createShape();
742                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
743                node.setType(PalladioComponentModelVisualIDRegistry
744                                .getType(BranchActionEditPart.VISUAL_ID));
745                ViewUtil.insertChildView(containerView, node, index, persisted);
746                node.setElement(domainElement);
747                stampShortcut(containerView, node);
748                // initializeFromPreferences 
749                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
750                                .getPreferenceStore();
751 
752                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
753                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
754                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
755                                .getLineStyle_LineColor(), FigureUtilities
756                                .RGBToInteger(lineRGB));
757                FontStyle nodeFontStyle = (FontStyle) node
758                                .getStyle(NotationPackage.Literals.FONT_STYLE);
759                if (nodeFontStyle != null) {
760                        FontData fontData = PreferenceConverter.getFontData(prefStore,
761                                        IPreferenceConstants.PREF_DEFAULT_FONT);
762                        nodeFontStyle.setFontName(fontData.getName());
763                        nodeFontStyle.setFontHeight(fontData.getHeight());
764                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
765                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
766                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
767                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
768                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
769                                        .intValue());
770                }
771                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
772                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
773                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
774                                .getFillStyle_FillColor(), FigureUtilities
775                                .RGBToInteger(fillRGB));
776                Node label5011 = createLabel(node,
777                                PalladioComponentModelVisualIDRegistry
778                                                .getType(BranchActionEntityNameEditPart.VISUAL_ID));
779                createCompartment(
780                                node,
781                                PalladioComponentModelVisualIDRegistry
782                                                .getType(BranchActionBranchTransitionCompartment2EditPart.VISUAL_ID),
783                                false, false, false, false);
784                return node;
785        }
786 
787        /**
788         * @generated
789         */
790        public Node createInternalAction_2006(EObject domainElement,
791                        View containerView, int index, boolean persisted,
792                        PreferencesHint preferencesHint) {
793                Shape node = NotationFactory.eINSTANCE.createShape();
794                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
795                node.setType(PalladioComponentModelVisualIDRegistry
796                                .getType(InternalActionEditPart.VISUAL_ID));
797                ViewUtil.insertChildView(containerView, node, index, persisted);
798                node.setElement(domainElement);
799                stampShortcut(containerView, node);
800                // initializeFromPreferences 
801                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
802                                .getPreferenceStore();
803 
804                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
805                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
806                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
807                                .getLineStyle_LineColor(), FigureUtilities
808                                .RGBToInteger(lineRGB));
809                FontStyle nodeFontStyle = (FontStyle) node
810                                .getStyle(NotationPackage.Literals.FONT_STYLE);
811                if (nodeFontStyle != null) {
812                        FontData fontData = PreferenceConverter.getFontData(prefStore,
813                                        IPreferenceConstants.PREF_DEFAULT_FONT);
814                        nodeFontStyle.setFontName(fontData.getName());
815                        nodeFontStyle.setFontHeight(fontData.getHeight());
816                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
817                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
818                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
819                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
820                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
821                                        .intValue());
822                }
823                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
824                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
825                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
826                                .getFillStyle_FillColor(), FigureUtilities
827                                .RGBToInteger(fillRGB));
828                Node label5012 = createLabel(node,
829                                PalladioComponentModelVisualIDRegistry
830                                                .getType(InternalActionEntityNameEditPart.VISUAL_ID));
831                createCompartment(node, PalladioComponentModelVisualIDRegistry
832                                .getType(InternalActionResourceDemand2EditPart.VISUAL_ID),
833                                true, true, true, true);
834                createCompartment(
835                                node,
836                                PalladioComponentModelVisualIDRegistry
837                                                .getType(InternalActionFailureOccurrenceDescriptions2EditPart.VISUAL_ID),
838                                true, true, true, true);
839                createCompartment(
840                                node,
841                                PalladioComponentModelVisualIDRegistry
842                                                .getType(InternalActionInfrastructureCallsCompartment2EditPart.VISUAL_ID),
843                                true, true, true, true);
844                return node;
845        }
846 
847        /**
848         * @generated
849         */
850        public Node createCollectionIteratorAction_2007(EObject domainElement,
851                        View containerView, int index, boolean persisted,
852                        PreferencesHint preferencesHint) {
853                Shape node = NotationFactory.eINSTANCE.createShape();
854                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
855                node.setType(PalladioComponentModelVisualIDRegistry
856                                .getType(CollectionIteratorActionEditPart.VISUAL_ID));
857                ViewUtil.insertChildView(containerView, node, index, persisted);
858                node.setElement(domainElement);
859                stampShortcut(containerView, node);
860                // initializeFromPreferences 
861                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
862                                .getPreferenceStore();
863 
864                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
865                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
866                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
867                                .getLineStyle_LineColor(), FigureUtilities
868                                .RGBToInteger(lineRGB));
869                FontStyle nodeFontStyle = (FontStyle) node
870                                .getStyle(NotationPackage.Literals.FONT_STYLE);
871                if (nodeFontStyle != null) {
872                        FontData fontData = PreferenceConverter.getFontData(prefStore,
873                                        IPreferenceConstants.PREF_DEFAULT_FONT);
874                        nodeFontStyle.setFontName(fontData.getName());
875                        nodeFontStyle.setFontHeight(fontData.getHeight());
876                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
877                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
878                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
879                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
880                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
881                                        .intValue());
882                }
883                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
884                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
885                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
886                                .getFillStyle_FillColor(), FigureUtilities
887                                .RGBToInteger(fillRGB));
888                Node label5015 = createLabel(
889                                node,
890                                PalladioComponentModelVisualIDRegistry
891                                                .getType(CollectionIteratorActionEntityNameEditPart.VISUAL_ID));
892                Node label5016 = createLabel(
893                                node,
894                                PalladioComponentModelVisualIDRegistry
895                                                .getType(CollectionIteratorParameterLabel2EditPart.VISUAL_ID));
896                return node;
897        }
898 
899        /**
900         * @generated
901         */
902        public Node createSetVariableAction_2008(EObject domainElement,
903                        View containerView, int index, boolean persisted,
904                        PreferencesHint preferencesHint) {
905                Shape node = NotationFactory.eINSTANCE.createShape();
906                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
907                node.setType(PalladioComponentModelVisualIDRegistry
908                                .getType(SetVariableActionEditPart.VISUAL_ID));
909                ViewUtil.insertChildView(containerView, node, index, persisted);
910                node.setElement(domainElement);
911                stampShortcut(containerView, node);
912                // initializeFromPreferences 
913                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
914                                .getPreferenceStore();
915 
916                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
917                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
918                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
919                                .getLineStyle_LineColor(), FigureUtilities
920                                .RGBToInteger(lineRGB));
921                FontStyle nodeFontStyle = (FontStyle) node
922                                .getStyle(NotationPackage.Literals.FONT_STYLE);
923                if (nodeFontStyle != null) {
924                        FontData fontData = PreferenceConverter.getFontData(prefStore,
925                                        IPreferenceConstants.PREF_DEFAULT_FONT);
926                        nodeFontStyle.setFontName(fontData.getName());
927                        nodeFontStyle.setFontHeight(fontData.getHeight());
928                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
929                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
930                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
931                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
932                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
933                                        .intValue());
934                }
935                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
936                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
937                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
938                                .getFillStyle_FillColor(), FigureUtilities
939                                .RGBToInteger(fillRGB));
940                Node label5023 = createLabel(node,
941                                PalladioComponentModelVisualIDRegistry
942                                                .getType(SetVariableActionEntityNameEditPart.VISUAL_ID));
943                createCompartment(node, PalladioComponentModelVisualIDRegistry
944                                .getType(SetVariableActionVariableSetter2EditPart.VISUAL_ID),
945                                true, true, true, true);
946                return node;
947        }
948 
949        /**
950         * @generated
951         */
952        public Node createAcquireAction_2012(EObject domainElement,
953                        View containerView, int index, boolean persisted,
954                        PreferencesHint preferencesHint) {
955                Shape node = NotationFactory.eINSTANCE.createShape();
956                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
957                node.setType(PalladioComponentModelVisualIDRegistry
958                                .getType(AcquireActionEditPart.VISUAL_ID));
959                ViewUtil.insertChildView(containerView, node, index, persisted);
960                node.setElement(domainElement);
961                stampShortcut(containerView, node);
962                // initializeFromPreferences 
963                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
964                                .getPreferenceStore();
965 
966                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
967                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
968                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
969                                .getLineStyle_LineColor(), FigureUtilities
970                                .RGBToInteger(lineRGB));
971                FontStyle nodeFontStyle = (FontStyle) node
972                                .getStyle(NotationPackage.Literals.FONT_STYLE);
973                if (nodeFontStyle != null) {
974                        FontData fontData = PreferenceConverter.getFontData(prefStore,
975                                        IPreferenceConstants.PREF_DEFAULT_FONT);
976                        nodeFontStyle.setFontName(fontData.getName());
977                        nodeFontStyle.setFontHeight(fontData.getHeight());
978                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
979                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
980                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
981                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
982                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
983                                        .intValue());
984                }
985                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
986                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
987                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
988                                .getFillStyle_FillColor(), FigureUtilities
989                                .RGBToInteger(fillRGB));
990                Node label5029 = createLabel(node,
991                                PalladioComponentModelVisualIDRegistry
992                                                .getType(AcquireActionEntityNameEditPart.VISUAL_ID));
993                return node;
994        }
995 
996        /**
997         * @generated
998         */
999        public Node createReleaseAction_2010(EObject domainElement,
1000                        View containerView, int index, boolean persisted,
1001                        PreferencesHint preferencesHint) {
1002                Shape node = NotationFactory.eINSTANCE.createShape();
1003                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1004                node.setType(PalladioComponentModelVisualIDRegistry
1005                                .getType(ReleaseActionEditPart.VISUAL_ID));
1006                ViewUtil.insertChildView(containerView, node, index, persisted);
1007                node.setElement(domainElement);
1008                stampShortcut(containerView, node);
1009                // initializeFromPreferences 
1010                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1011                                .getPreferenceStore();
1012 
1013                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1014                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1015                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1016                                .getLineStyle_LineColor(), FigureUtilities
1017                                .RGBToInteger(lineRGB));
1018                FontStyle nodeFontStyle = (FontStyle) node
1019                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1020                if (nodeFontStyle != null) {
1021                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1022                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1023                        nodeFontStyle.setFontName(fontData.getName());
1024                        nodeFontStyle.setFontHeight(fontData.getHeight());
1025                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1026                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1027                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1028                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1029                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1030                                        .intValue());
1031                }
1032                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1033                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1034                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1035                                .getFillStyle_FillColor(), FigureUtilities
1036                                .RGBToInteger(fillRGB));
1037                Node label5022 = createLabel(node,
1038                                PalladioComponentModelVisualIDRegistry
1039                                                .getType(ReleaseActionEntityNameEditPart.VISUAL_ID));
1040                return node;
1041        }
1042 
1043        /**
1044         * @generated
1045         */
1046        public Node createForkAction_2011(EObject domainElement,
1047                        View containerView, int index, boolean persisted,
1048                        PreferencesHint preferencesHint) {
1049                Shape node = NotationFactory.eINSTANCE.createShape();
1050                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1051                node.setType(PalladioComponentModelVisualIDRegistry
1052                                .getType(ForkActionEditPart.VISUAL_ID));
1053                ViewUtil.insertChildView(containerView, node, index, persisted);
1054                node.setElement(domainElement);
1055                stampShortcut(containerView, node);
1056                // initializeFromPreferences 
1057                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1058                                .getPreferenceStore();
1059 
1060                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1061                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1062                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1063                                .getLineStyle_LineColor(), FigureUtilities
1064                                .RGBToInteger(lineRGB));
1065                FontStyle nodeFontStyle = (FontStyle) node
1066                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1067                if (nodeFontStyle != null) {
1068                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1069                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1070                        nodeFontStyle.setFontName(fontData.getName());
1071                        nodeFontStyle.setFontHeight(fontData.getHeight());
1072                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1073                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1074                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1075                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1076                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1077                                        .intValue());
1078                }
1079                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1080                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1081                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1082                                .getFillStyle_FillColor(), FigureUtilities
1083                                .RGBToInteger(fillRGB));
1084                Node label5024 = createLabel(node,
1085                                PalladioComponentModelVisualIDRegistry
1086                                                .getType(ForkActionEntityNameEditPart.VISUAL_ID));
1087                createCompartment(node, PalladioComponentModelVisualIDRegistry
1088                                .getType(ForkActionForkedBehaviours2EditPart.VISUAL_ID), false,
1089                                true, false, false);
1090                return node;
1091        }
1092 
1093        /**
1094         * @generated
1095         */
1096        public Node createRecoveryAction_2016(EObject domainElement,
1097                        View containerView, int index, boolean persisted,
1098                        PreferencesHint preferencesHint) {
1099                Shape node = NotationFactory.eINSTANCE.createShape();
1100                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1101                node.setType(PalladioComponentModelVisualIDRegistry
1102                                .getType(RecoveryActionEditPart.VISUAL_ID));
1103                ViewUtil.insertChildView(containerView, node, index, persisted);
1104                node.setElement(domainElement);
1105                stampShortcut(containerView, node);
1106                // initializeFromPreferences 
1107                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1108                                .getPreferenceStore();
1109 
1110                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1111                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1112                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1113                                .getLineStyle_LineColor(), FigureUtilities
1114                                .RGBToInteger(lineRGB));
1115                FontStyle nodeFontStyle = (FontStyle) node
1116                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1117                if (nodeFontStyle != null) {
1118                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1119                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1120                        nodeFontStyle.setFontName(fontData.getName());
1121                        nodeFontStyle.setFontHeight(fontData.getHeight());
1122                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1123                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1124                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1125                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1126                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1127                                        .intValue());
1128                }
1129                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1130                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1131                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1132                                .getFillStyle_FillColor(), FigureUtilities
1133                                .RGBToInteger(fillRGB));
1134                Node label5056 = createLabel(node,
1135                                PalladioComponentModelVisualIDRegistry
1136                                                .getType(RecoveryActionEntityNameEditPart.VISUAL_ID));
1137                createCompartment(
1138                                node,
1139                                PalladioComponentModelVisualIDRegistry
1140                                                .getType(RecoveryActionRecoveryBlockCompartment2EditPart.VISUAL_ID),
1141                                false, false, false, false);
1142                return node;
1143        }
1144 
1145        /**
1146         * @generated
1147         */
1148        public Node createVariableUsage_3042(EObject domainElement,
1149                        View containerView, int index, boolean persisted,
1150                        PreferencesHint preferencesHint) {
1151                Node node = NotationFactory.eINSTANCE.createNode();
1152                node.getStyles()
1153                                .add(NotationFactory.eINSTANCE.createDescriptionStyle());
1154                node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
1155                node.getStyles().add(NotationFactory.eINSTANCE.createLineStyle());
1156                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1157                node.setType(PalladioComponentModelVisualIDRegistry
1158                                .getType(VariableUsageEditPart.VISUAL_ID));
1159                ViewUtil.insertChildView(containerView, node, index, persisted);
1160                node.setElement(domainElement);
1161                // initializeFromPreferences 
1162                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1163                                .getPreferenceStore();
1164 
1165                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1166                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1167                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1168                                .getLineStyle_LineColor(), FigureUtilities
1169                                .RGBToInteger(lineRGB));
1170                FontStyle nodeFontStyle = (FontStyle) node
1171                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1172                if (nodeFontStyle != null) {
1173                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1174                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1175                        nodeFontStyle.setFontName(fontData.getName());
1176                        nodeFontStyle.setFontHeight(fontData.getHeight());
1177                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1178                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1179                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1180                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1181                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1182                                        .intValue());
1183                }
1184                Node label5040 = createLabel(node,
1185                                PalladioComponentModelVisualIDRegistry
1186                                                .getType(VariableUsageLabelEditPart.VISUAL_ID));
1187                createCompartment(
1188                                node,
1189                                PalladioComponentModelVisualIDRegistry
1190                                                .getType(VariableUsageVariableCharacterisationEditPart.VISUAL_ID),
1191                                true, true, true, true);
1192                return node;
1193        }
1194 
1195        /**
1196         * @generated
1197         */
1198        public Node createVariableCharacterisation_3033(EObject domainElement,
1199                        View containerView, int index, boolean persisted,
1200                        PreferencesHint preferencesHint) {
1201                Node node = NotationFactory.eINSTANCE.createNode();
1202                node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
1203                node.setType(PalladioComponentModelVisualIDRegistry
1204                                .getType(VariableCharacterisationEditPart.VISUAL_ID));
1205                ViewUtil.insertChildView(containerView, node, index, persisted);
1206                node.setElement(domainElement);
1207                return node;
1208        }
1209 
1210        /**
1211         * @generated
1212         */
1213        public Node createVariableUsage_3049(EObject domainElement,
1214                        View containerView, int index, boolean persisted,
1215                        PreferencesHint preferencesHint) {
1216                Node node = NotationFactory.eINSTANCE.createNode();
1217                node.getStyles()
1218                                .add(NotationFactory.eINSTANCE.createDescriptionStyle());
1219                node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
1220                node.getStyles().add(NotationFactory.eINSTANCE.createLineStyle());
1221                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1222                node.setType(PalladioComponentModelVisualIDRegistry
1223                                .getType(VariableUsage2EditPart.VISUAL_ID));
1224                ViewUtil.insertChildView(containerView, node, index, persisted);
1225                node.setElement(domainElement);
1226                // initializeFromPreferences 
1227                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1228                                .getPreferenceStore();
1229 
1230                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1231                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1232                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1233                                .getLineStyle_LineColor(), FigureUtilities
1234                                .RGBToInteger(lineRGB));
1235                FontStyle nodeFontStyle = (FontStyle) node
1236                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1237                if (nodeFontStyle != null) {
1238                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1239                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1240                        nodeFontStyle.setFontName(fontData.getName());
1241                        nodeFontStyle.setFontHeight(fontData.getHeight());
1242                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1243                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1244                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1245                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1246                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1247                                        .intValue());
1248                }
1249                Node label5047 = createLabel(node,
1250                                PalladioComponentModelVisualIDRegistry
1251                                                .getType(WrappingLabelEditPart.VISUAL_ID));
1252                createCompartment(
1253                                node,
1254                                PalladioComponentModelVisualIDRegistry
1255                                                .getType(VariableUsageVariableCharacterisation2EditPart.VISUAL_ID),
1256                                true, true, true, true);
1257                return node;
1258        }
1259 
1260        /**
1261         * @generated
1262         */
1263        public Node createVariableCharacterisation_3035(EObject domainElement,
1264                        View containerView, int index, boolean persisted,
1265                        PreferencesHint preferencesHint) {
1266                Node node = NotationFactory.eINSTANCE.createNode();
1267                node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
1268                node.setType(PalladioComponentModelVisualIDRegistry
1269                                .getType(VariableCharacterisation2EditPart.VISUAL_ID));
1270                ViewUtil.insertChildView(containerView, node, index, persisted);
1271                node.setElement(domainElement);
1272                return node;
1273        }
1274 
1275        /**
1276         * @generated
1277         */
1278        public Node createVariableUsage_3047(EObject domainElement,
1279                        View containerView, int index, boolean persisted,
1280                        PreferencesHint preferencesHint) {
1281                Node node = NotationFactory.eINSTANCE.createNode();
1282                node.getStyles()
1283                                .add(NotationFactory.eINSTANCE.createDescriptionStyle());
1284                node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
1285                node.getStyles().add(NotationFactory.eINSTANCE.createLineStyle());
1286                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1287                node.setType(PalladioComponentModelVisualIDRegistry
1288                                .getType(VariableUsage4EditPart.VISUAL_ID));
1289                ViewUtil.insertChildView(containerView, node, index, persisted);
1290                node.setElement(domainElement);
1291                // initializeFromPreferences 
1292                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1293                                .getPreferenceStore();
1294 
1295                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1296                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1297                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1298                                .getLineStyle_LineColor(), FigureUtilities
1299                                .RGBToInteger(lineRGB));
1300                FontStyle nodeFontStyle = (FontStyle) node
1301                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1302                if (nodeFontStyle != null) {
1303                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1304                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1305                        nodeFontStyle.setFontName(fontData.getName());
1306                        nodeFontStyle.setFontHeight(fontData.getHeight());
1307                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1308                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1309                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1310                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1311                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1312                                        .intValue());
1313                }
1314                Node label5045 = createLabel(node,
1315                                PalladioComponentModelVisualIDRegistry
1316                                                .getType(VariableUsage4LabelEditPart.VISUAL_ID));
1317                createCompartment(
1318                                node,
1319                                PalladioComponentModelVisualIDRegistry
1320                                                .getType(VariableUsageVariableCharacterisation4EditPart.VISUAL_ID),
1321                                true, true, true, true);
1322                return node;
1323        }
1324 
1325        /**
1326         * @generated
1327         */
1328        public Node createResourceDemandingBehaviour_3003(EObject domainElement,
1329                        View containerView, int index, boolean persisted,
1330                        PreferencesHint preferencesHint) {
1331                Shape node = NotationFactory.eINSTANCE.createShape();
1332                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1333                node.setType(PalladioComponentModelVisualIDRegistry
1334                                .getType(ResourceDemandingBehaviourEditPart.VISUAL_ID));
1335                ViewUtil.insertChildView(containerView, node, index, persisted);
1336                node.setElement(domainElement);
1337                // initializeFromPreferences 
1338                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1339                                .getPreferenceStore();
1340 
1341                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1342                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1343                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1344                                .getLineStyle_LineColor(), FigureUtilities
1345                                .RGBToInteger(lineRGB));
1346                FontStyle nodeFontStyle = (FontStyle) node
1347                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1348                if (nodeFontStyle != null) {
1349                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1350                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1351                        nodeFontStyle.setFontName(fontData.getName());
1352                        nodeFontStyle.setFontHeight(fontData.getHeight());
1353                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1354                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1355                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1356                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1357                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1358                                        .intValue());
1359                }
1360                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1361                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1362                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1363                                .getFillStyle_FillColor(), FigureUtilities
1364                                .RGBToInteger(fillRGB));
1365                createCompartment(
1366                                node,
1367                                PalladioComponentModelVisualIDRegistry
1368                                                .getType(ResourceDemandingBehaviourBehaviourCompartmentEditPart.VISUAL_ID),
1369                                false, false, false, false);
1370                return node;
1371        }
1372 
1373        /**
1374         * @generated
1375         */
1376        public Node createStartAction_3004(EObject domainElement,
1377                        View containerView, int index, boolean persisted,
1378                        PreferencesHint preferencesHint) {
1379                Node node = NotationFactory.eINSTANCE.createNode();
1380                node.getStyles()
1381                                .add(NotationFactory.eINSTANCE.createDescriptionStyle());
1382                node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
1383                node.getStyles().add(NotationFactory.eINSTANCE.createLineStyle());
1384                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1385                node.setType(PalladioComponentModelVisualIDRegistry
1386                                .getType(StartAction2EditPart.VISUAL_ID));
1387                ViewUtil.insertChildView(containerView, node, index, persisted);
1388                node.setElement(domainElement);
1389                // initializeFromPreferences 
1390                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1391                                .getPreferenceStore();
1392 
1393                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1394                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1395                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1396                                .getLineStyle_LineColor(), FigureUtilities
1397                                .RGBToInteger(lineRGB));
1398                FontStyle nodeFontStyle = (FontStyle) node
1399                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1400                if (nodeFontStyle != null) {
1401                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1402                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1403                        nodeFontStyle.setFontName(fontData.getName());
1404                        nodeFontStyle.setFontHeight(fontData.getHeight());
1405                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1406                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1407                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1408                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1409                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1410                                        .intValue());
1411                }
1412                return node;
1413        }
1414 
1415        /**
1416         * @generated
1417         */
1418        public Node createStopAction_3005(EObject domainElement,
1419                        View containerView, int index, boolean persisted,
1420                        PreferencesHint preferencesHint) {
1421                Shape node = NotationFactory.eINSTANCE.createShape();
1422                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1423                node.setType(PalladioComponentModelVisualIDRegistry
1424                                .getType(StopAction2EditPart.VISUAL_ID));
1425                ViewUtil.insertChildView(containerView, node, index, persisted);
1426                node.setElement(domainElement);
1427                // initializeFromPreferences 
1428                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1429                                .getPreferenceStore();
1430 
1431                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1432                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1433                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1434                                .getLineStyle_LineColor(), FigureUtilities
1435                                .RGBToInteger(lineRGB));
1436                FontStyle nodeFontStyle = (FontStyle) node
1437                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1438                if (nodeFontStyle != null) {
1439                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1440                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1441                        nodeFontStyle.setFontName(fontData.getName());
1442                        nodeFontStyle.setFontHeight(fontData.getHeight());
1443                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1444                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1445                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1446                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1447                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1448                                        .intValue());
1449                }
1450                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1451                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1452                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1453                                .getFillStyle_FillColor(), FigureUtilities
1454                                .RGBToInteger(fillRGB));
1455                return node;
1456        }
1457 
1458        /**
1459         * @generated
1460         */
1461        public Node createLoopAction_3006(EObject domainElement,
1462                        View containerView, int index, boolean persisted,
1463                        PreferencesHint preferencesHint) {
1464                Shape node = NotationFactory.eINSTANCE.createShape();
1465                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1466                node.setType(PalladioComponentModelVisualIDRegistry
1467                                .getType(LoopAction2EditPart.VISUAL_ID));
1468                ViewUtil.insertChildView(containerView, node, index, persisted);
1469                node.setElement(domainElement);
1470                // initializeFromPreferences 
1471                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1472                                .getPreferenceStore();
1473 
1474                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1475                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1476                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1477                                .getLineStyle_LineColor(), FigureUtilities
1478                                .RGBToInteger(lineRGB));
1479                FontStyle nodeFontStyle = (FontStyle) node
1480                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1481                if (nodeFontStyle != null) {
1482                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1483                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1484                        nodeFontStyle.setFontName(fontData.getName());
1485                        nodeFontStyle.setFontHeight(fontData.getHeight());
1486                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1487                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1488                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1489                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1490                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1491                                        .intValue());
1492                }
1493                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1494                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1495                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1496                                .getFillStyle_FillColor(), FigureUtilities
1497                                .RGBToInteger(fillRGB));
1498                Node label5003 = createLabel(node,
1499                                PalladioComponentModelVisualIDRegistry
1500                                                .getType(LoopActionEntityName2EditPart.VISUAL_ID));
1501                Node label5004 = createLabel(node,
1502                                PalladioComponentModelVisualIDRegistry
1503                                                .getType(Loop2IterationsLabelEditPart.VISUAL_ID));
1504                return node;
1505        }
1506 
1507        /**
1508         * @generated
1509         */
1510        public Node createInternalAction_3007(EObject domainElement,
1511                        View containerView, int index, boolean persisted,
1512                        PreferencesHint preferencesHint) {
1513                Shape node = NotationFactory.eINSTANCE.createShape();
1514                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1515                node.setType(PalladioComponentModelVisualIDRegistry
1516                                .getType(InternalAction2EditPart.VISUAL_ID));
1517                ViewUtil.insertChildView(containerView, node, index, persisted);
1518                node.setElement(domainElement);
1519                // initializeFromPreferences 
1520                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1521                                .getPreferenceStore();
1522 
1523                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1524                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1525                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1526                                .getLineStyle_LineColor(), FigureUtilities
1527                                .RGBToInteger(lineRGB));
1528                FontStyle nodeFontStyle = (FontStyle) node
1529                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1530                if (nodeFontStyle != null) {
1531                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1532                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1533                        nodeFontStyle.setFontName(fontData.getName());
1534                        nodeFontStyle.setFontHeight(fontData.getHeight());
1535                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1536                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1537                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1538                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1539                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1540                                        .intValue());
1541                }
1542                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1543                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1544                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1545                                .getFillStyle_FillColor(), FigureUtilities
1546                                .RGBToInteger(fillRGB));
1547                Node label5005 = createLabel(node,
1548                                PalladioComponentModelVisualIDRegistry
1549                                                .getType(InternalActionEntityName2EditPart.VISUAL_ID));
1550                createCompartment(node, PalladioComponentModelVisualIDRegistry
1551                                .getType(InternalActionResourceDemandEditPart.VISUAL_ID), true,
1552                                true, true, true);
1553                createCompartment(
1554                                node,
1555                                PalladioComponentModelVisualIDRegistry
1556                                                .getType(InternalActionFailureOccurrenceDescriptionsEditPart.VISUAL_ID),
1557                                true, true, true, true);
1558                createCompartment(
1559                                node,
1560                                PalladioComponentModelVisualIDRegistry
1561                                                .getType(InternalActionInfrastructureCallsCompartmentEditPart.VISUAL_ID),
1562                                true, false, true, true);
1563                return node;
1564        }
1565 
1566        /**
1567         * @generated
1568         */
1569        public Node createParametricResourceDemand_3051(EObject domainElement,
1570                        View containerView, int index, boolean persisted,
1571                        PreferencesHint preferencesHint) {
1572                Node node = NotationFactory.eINSTANCE.createNode();
1573                node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
1574                node.setType(PalladioComponentModelVisualIDRegistry
1575                                .getType(ParametricResourceDemandEditPart.VISUAL_ID));
1576                ViewUtil.insertChildView(containerView, node, index, persisted);
1577                node.setElement(domainElement);
1578                return node;
1579        }
1580 
1581        /**
1582         * @generated
1583         */
1584        public Node createInternalFailureOccurrenceDescription_3050(
1585                        EObject domainElement, View containerView, int index,
1586                        boolean persisted, PreferencesHint preferencesHint) {
1587                Node node = NotationFactory.eINSTANCE.createNode();
1588                node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
1589                node
1590                                .setType(PalladioComponentModelVisualIDRegistry
1591                                                .getType(InternalFailureOccurrenceDescriptionEditPart.VISUAL_ID));
1592                ViewUtil.insertChildView(containerView, node, index, persisted);
1593                node.setElement(domainElement);
1594                return node;
1595        }
1596 
1597        /**
1598         * @generated
1599         */
1600        public Node createInfrastructureCall_3053(EObject domainElement,
1601                        View containerView, int index, boolean persisted,
1602                        PreferencesHint preferencesHint) {
1603                Shape node = NotationFactory.eINSTANCE.createShape();
1604                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1605                node.setType(PalladioComponentModelVisualIDRegistry
1606                                .getType(InfrastructureCallEditPart.VISUAL_ID));
1607                ViewUtil.insertChildView(containerView, node, index, persisted);
1608                node.setElement(domainElement);
1609                // initializeFromPreferences 
1610                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1611                                .getPreferenceStore();
1612 
1613                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1614                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1615                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1616                                .getLineStyle_LineColor(), FigureUtilities
1617                                .RGBToInteger(lineRGB));
1618                FontStyle nodeFontStyle = (FontStyle) node
1619                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1620                if (nodeFontStyle != null) {
1621                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1622                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1623                        nodeFontStyle.setFontName(fontData.getName());
1624                        nodeFontStyle.setFontHeight(fontData.getHeight());
1625                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1626                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1627                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1628                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1629                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1630                                        .intValue());
1631                }
1632                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1633                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1634                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1635                                .getFillStyle_FillColor(), FigureUtilities
1636                                .RGBToInteger(fillRGB));
1637                Node label5051 = createLabel(
1638                                node,
1639                                PalladioComponentModelVisualIDRegistry
1640                                                .getType(InfrastructureCallNumberOfCallsLabelEditPart.VISUAL_ID));
1641                Node label5052 = createLabel(
1642                                node,
1643                                PalladioComponentModelVisualIDRegistry
1644                                                .getType(InfrastructureCallTargetLabelEditPart.VISUAL_ID));
1645                createCompartment(
1646                                node,
1647                                PalladioComponentModelVisualIDRegistry
1648                                                .getType(InfrastructureCallInfrastructureCallInputVariableUsagesEditPart.VISUAL_ID),
1649                                true, false, true, true);
1650                return node;
1651        }
1652 
1653        /**
1654         * @generated
1655         */
1656        public Node createVariableUsage_3054(EObject domainElement,
1657                        View containerView, int index, boolean persisted,
1658                        PreferencesHint preferencesHint) {
1659                Node node = NotationFactory.eINSTANCE.createNode();
1660                node.getStyles()
1661                                .add(NotationFactory.eINSTANCE.createDescriptionStyle());
1662                node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
1663                node.getStyles().add(NotationFactory.eINSTANCE.createLineStyle());
1664                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1665                node.setType(PalladioComponentModelVisualIDRegistry
1666                                .getType(VariableUsage5EditPart.VISUAL_ID));
1667                ViewUtil.insertChildView(containerView, node, index, persisted);
1668                node.setElement(domainElement);
1669                // initializeFromPreferences 
1670                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1671                                .getPreferenceStore();
1672 
1673                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1674                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1675                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1676                                .getLineStyle_LineColor(), FigureUtilities
1677                                .RGBToInteger(lineRGB));
1678                FontStyle nodeFontStyle = (FontStyle) node
1679                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1680                if (nodeFontStyle != null) {
1681                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1682                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1683                        nodeFontStyle.setFontName(fontData.getName());
1684                        nodeFontStyle.setFontHeight(fontData.getHeight());
1685                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1686                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1687                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1688                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1689                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1690                                        .intValue());
1691                }
1692                Node label5050 = createLabel(node,
1693                                PalladioComponentModelVisualIDRegistry
1694                                                .getType(VariableUsage5LabelEditPart.VISUAL_ID));
1695                createCompartment(
1696                                node,
1697                                PalladioComponentModelVisualIDRegistry
1698                                                .getType(VariableUsageVariableCharacterisation5EditPart.VISUAL_ID),
1699                                true, true, true, true);
1700                return node;
1701        }
1702 
1703        /**
1704         * @generated
1705         */
1706        public Node createBranchAction_3009(EObject domainElement,
1707                        View containerView, int index, boolean persisted,
1708                        PreferencesHint preferencesHint) {
1709                Shape node = NotationFactory.eINSTANCE.createShape();
1710                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1711                node.setType(PalladioComponentModelVisualIDRegistry
1712                                .getType(BranchAction2EditPart.VISUAL_ID));
1713                ViewUtil.insertChildView(containerView, node, index, persisted);
1714                node.setElement(domainElement);
1715                // initializeFromPreferences 
1716                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1717                                .getPreferenceStore();
1718 
1719                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1720                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1721                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1722                                .getLineStyle_LineColor(), FigureUtilities
1723                                .RGBToInteger(lineRGB));
1724                FontStyle nodeFontStyle = (FontStyle) node
1725                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1726                if (nodeFontStyle != null) {
1727                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1728                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1729                        nodeFontStyle.setFontName(fontData.getName());
1730                        nodeFontStyle.setFontHeight(fontData.getHeight());
1731                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1732                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1733                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1734                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1735                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1736                                        .intValue());
1737                }
1738                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1739                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1740                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1741                                .getFillStyle_FillColor(), FigureUtilities
1742                                .RGBToInteger(fillRGB));
1743                Node label5008 = createLabel(node,
1744                                PalladioComponentModelVisualIDRegistry
1745                                                .getType(BranchActionEntityName2EditPart.VISUAL_ID));
1746                createCompartment(
1747                                node,
1748                                PalladioComponentModelVisualIDRegistry
1749                                                .getType(BranchActionBranchTransitionCompartmentEditPart.VISUAL_ID),
1750                                false, false, false, false);
1751                return node;
1752        }
1753 
1754        /**
1755         * @generated
1756         */
1757        public Node createProbabilisticBranchTransition_3010(EObject domainElement,
1758                        View containerView, int index, boolean persisted,
1759                        PreferencesHint preferencesHint) {
1760                Shape node = NotationFactory.eINSTANCE.createShape();
1761                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1762                node.setType(PalladioComponentModelVisualIDRegistry
1763                                .getType(ProbabilisticBranchTransitionEditPart.VISUAL_ID));
1764                ViewUtil.insertChildView(containerView, node, index, persisted);
1765                node.setElement(domainElement);
1766                // initializeFromPreferences 
1767                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1768                                .getPreferenceStore();
1769 
1770                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1771                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1772                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1773                                .getLineStyle_LineColor(), FigureUtilities
1774                                .RGBToInteger(lineRGB));
1775                FontStyle nodeFontStyle = (FontStyle) node
1776                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1777                if (nodeFontStyle != null) {
1778                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1779                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1780                        nodeFontStyle.setFontName(fontData.getName());
1781                        nodeFontStyle.setFontHeight(fontData.getHeight());
1782                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1783                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1784                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1785                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1786                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1787                                        .intValue());
1788                }
1789                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1790                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1791                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1792                                .getFillStyle_FillColor(), FigureUtilities
1793                                .RGBToInteger(fillRGB));
1794                Node label5007 = createLabel(
1795                                node,
1796                                PalladioComponentModelVisualIDRegistry
1797                                                .getType(ProbabilisticBranchTransitionEntityNameEditPart.VISUAL_ID));
1798                Node label5037 = createLabel(
1799                                node,
1800                                PalladioComponentModelVisualIDRegistry
1801                                                .getType(ProbabilisticBranchTransitionBranchProbabilityEditPart.VISUAL_ID));
1802                return node;
1803        }
1804 
1805        /**
1806         * @generated
1807         */
1808        public Node createResourceDemandingBehaviour_3011(EObject domainElement,
1809                        View containerView, int index, boolean persisted,
1810                        PreferencesHint preferencesHint) {
1811                Shape node = NotationFactory.eINSTANCE.createShape();
1812                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1813                node.setType(PalladioComponentModelVisualIDRegistry
1814                                .getType(ResourceDemandingBehaviour2EditPart.VISUAL_ID));
1815                ViewUtil.insertChildView(containerView, node, index, persisted);
1816                node.setElement(domainElement);
1817                // initializeFromPreferences 
1818                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1819                                .getPreferenceStore();
1820 
1821                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1822                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1823                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1824                                .getLineStyle_LineColor(), FigureUtilities
1825                                .RGBToInteger(lineRGB));
1826                FontStyle nodeFontStyle = (FontStyle) node
1827                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1828                if (nodeFontStyle != null) {
1829                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1830                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1831                        nodeFontStyle.setFontName(fontData.getName());
1832                        nodeFontStyle.setFontHeight(fontData.getHeight());
1833                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1834                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1835                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1836                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1837                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1838                                        .intValue());
1839                }
1840                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1841                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1842                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1843                                .getFillStyle_FillColor(), FigureUtilities
1844                                .RGBToInteger(fillRGB));
1845                createCompartment(
1846                                node,
1847                                PalladioComponentModelVisualIDRegistry
1848                                                .getType(ResourceDemandingBehaviourBehaviourCompartment2EditPart.VISUAL_ID),
1849                                false, false, false, false);
1850                return node;
1851        }
1852 
1853        /**
1854         * @generated
1855         */
1856        public Node createExternalCallAction_3012(EObject domainElement,
1857                        View containerView, int index, boolean persisted,
1858                        PreferencesHint preferencesHint) {
1859                Shape node = NotationFactory.eINSTANCE.createShape();
1860                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1861                node.setType(PalladioComponentModelVisualIDRegistry
1862                                .getType(ExternalCallAction2EditPart.VISUAL_ID));
1863                ViewUtil.insertChildView(containerView, node, index, persisted);
1864                node.setElement(domainElement);
1865                // initializeFromPreferences 
1866                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1867                                .getPreferenceStore();
1868 
1869                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1870                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1871                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1872                                .getLineStyle_LineColor(), FigureUtilities
1873                                .RGBToInteger(lineRGB));
1874                FontStyle nodeFontStyle = (FontStyle) node
1875                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1876                if (nodeFontStyle != null) {
1877                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1878                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1879                        nodeFontStyle.setFontName(fontData.getName());
1880                        nodeFontStyle.setFontHeight(fontData.getHeight());
1881                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1882                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1883                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1884                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1885                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1886                                        .intValue());
1887                }
1888                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1889                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1890                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1891                                .getFillStyle_FillColor(), FigureUtilities
1892                                .RGBToInteger(fillRGB));
1893                Node label5006 = createLabel(
1894                                node,
1895                                PalladioComponentModelVisualIDRegistry
1896                                                .getType(ExternalCallActionEntityName2EditPart.VISUAL_ID));
1897                createCompartment(
1898                                node,
1899                                PalladioComponentModelVisualIDRegistry
1900                                                .getType(ExternalCallActionInputVariableUsage2EditPart.VISUAL_ID),
1901                                true, true, true, true);
1902                createCompartment(
1903                                node,
1904                                PalladioComponentModelVisualIDRegistry
1905                                                .getType(ExternalCallActionOutputVariableUsage2EditPart.VISUAL_ID),
1906                                true, true, true, true);
1907                return node;
1908        }
1909 
1910        /**
1911         * @generated
1912         */
1913        public Node createEmitEventAction_3046(EObject domainElement,
1914                        View containerView, int index, boolean persisted,
1915                        PreferencesHint preferencesHint) {
1916                Shape node = NotationFactory.eINSTANCE.createShape();
1917                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1918                node.setType(PalladioComponentModelVisualIDRegistry
1919                                .getType(EmitEventAction2EditPart.VISUAL_ID));
1920                ViewUtil.insertChildView(containerView, node, index, persisted);
1921                node.setElement(domainElement);
1922                // initializeFromPreferences 
1923                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1924                                .getPreferenceStore();
1925 
1926                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1927                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1928                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1929                                .getLineStyle_LineColor(), FigureUtilities
1930                                .RGBToInteger(lineRGB));
1931                FontStyle nodeFontStyle = (FontStyle) node
1932                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1933                if (nodeFontStyle != null) {
1934                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1935                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1936                        nodeFontStyle.setFontName(fontData.getName());
1937                        nodeFontStyle.setFontHeight(fontData.getHeight());
1938                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1939                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1940                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1941                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1942                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1943                                        .intValue());
1944                }
1945                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1946                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1947                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1948                                .getFillStyle_FillColor(), FigureUtilities
1949                                .RGBToInteger(fillRGB));
1950                Node label5044 = createLabel(node,
1951                                PalladioComponentModelVisualIDRegistry
1952                                                .getType(EmitEventActionEntityName2EditPart.VISUAL_ID));
1953                createCompartment(
1954                                node,
1955                                PalladioComponentModelVisualIDRegistry
1956                                                .getType(EmitEventActionInputVariableUsageEvent2EditPart.VISUAL_ID),
1957                                true, true, true, true);
1958                return node;
1959        }
1960 
1961        /**
1962         * @generated
1963         */
1964        public Node createAcquireAction_3026(EObject domainElement,
1965                        View containerView, int index, boolean persisted,
1966                        PreferencesHint preferencesHint) {
1967                Shape node = NotationFactory.eINSTANCE.createShape();
1968                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
1969                node.setType(PalladioComponentModelVisualIDRegistry
1970                                .getType(AcquireAction2EditPart.VISUAL_ID));
1971                ViewUtil.insertChildView(containerView, node, index, persisted);
1972                node.setElement(domainElement);
1973                // initializeFromPreferences 
1974                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
1975                                .getPreferenceStore();
1976 
1977                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
1978                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
1979                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1980                                .getLineStyle_LineColor(), FigureUtilities
1981                                .RGBToInteger(lineRGB));
1982                FontStyle nodeFontStyle = (FontStyle) node
1983                                .getStyle(NotationPackage.Literals.FONT_STYLE);
1984                if (nodeFontStyle != null) {
1985                        FontData fontData = PreferenceConverter.getFontData(prefStore,
1986                                        IPreferenceConstants.PREF_DEFAULT_FONT);
1987                        nodeFontStyle.setFontName(fontData.getName());
1988                        nodeFontStyle.setFontHeight(fontData.getHeight());
1989                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
1990                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
1991                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
1992                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
1993                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
1994                                        .intValue());
1995                }
1996                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
1997                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
1998                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
1999                                .getFillStyle_FillColor(), FigureUtilities
2000                                .RGBToInteger(fillRGB));
2001                Node label5028 = createLabel(node,
2002                                PalladioComponentModelVisualIDRegistry
2003                                                .getType(AcquireActionEntityName2EditPart.VISUAL_ID));
2004                return node;
2005        }
2006 
2007        /**
2008         * @generated
2009         */
2010        public Node createReleaseAction_3020(EObject domainElement,
2011                        View containerView, int index, boolean persisted,
2012                        PreferencesHint preferencesHint) {
2013                Shape node = NotationFactory.eINSTANCE.createShape();
2014                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2015                node.setType(PalladioComponentModelVisualIDRegistry
2016                                .getType(ReleaseAction2EditPart.VISUAL_ID));
2017                ViewUtil.insertChildView(containerView, node, index, persisted);
2018                node.setElement(domainElement);
2019                // initializeFromPreferences 
2020                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2021                                .getPreferenceStore();
2022 
2023                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2024                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2025                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2026                                .getLineStyle_LineColor(), FigureUtilities
2027                                .RGBToInteger(lineRGB));
2028                FontStyle nodeFontStyle = (FontStyle) node
2029                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2030                if (nodeFontStyle != null) {
2031                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2032                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2033                        nodeFontStyle.setFontName(fontData.getName());
2034                        nodeFontStyle.setFontHeight(fontData.getHeight());
2035                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2036                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2037                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2038                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2039                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2040                                        .intValue());
2041                }
2042                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2043                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2044                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2045                                .getFillStyle_FillColor(), FigureUtilities
2046                                .RGBToInteger(fillRGB));
2047                Node label5020 = createLabel(node,
2048                                PalladioComponentModelVisualIDRegistry
2049                                                .getType(ReleaseActionEntityName2EditPart.VISUAL_ID));
2050                return node;
2051        }
2052 
2053        /**
2054         * @generated
2055         */
2056        public Node createForkAction_3023(EObject domainElement,
2057                        View containerView, int index, boolean persisted,
2058                        PreferencesHint preferencesHint) {
2059                Shape node = NotationFactory.eINSTANCE.createShape();
2060                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2061                node.setType(PalladioComponentModelVisualIDRegistry
2062                                .getType(ForkAction2EditPart.VISUAL_ID));
2063                ViewUtil.insertChildView(containerView, node, index, persisted);
2064                node.setElement(domainElement);
2065                // initializeFromPreferences 
2066                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2067                                .getPreferenceStore();
2068 
2069                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2070                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2071                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2072                                .getLineStyle_LineColor(), FigureUtilities
2073                                .RGBToInteger(lineRGB));
2074                FontStyle nodeFontStyle = (FontStyle) node
2075                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2076                if (nodeFontStyle != null) {
2077                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2078                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2079                        nodeFontStyle.setFontName(fontData.getName());
2080                        nodeFontStyle.setFontHeight(fontData.getHeight());
2081                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2082                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2083                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2084                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2085                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2086                                        .intValue());
2087                }
2088                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2089                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2090                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2091                                .getFillStyle_FillColor(), FigureUtilities
2092                                .RGBToInteger(fillRGB));
2093                Node label5026 = createLabel(node,
2094                                PalladioComponentModelVisualIDRegistry
2095                                                .getType(ForkActionEntityName2EditPart.VISUAL_ID));
2096                createCompartment(node, PalladioComponentModelVisualIDRegistry
2097                                .getType(ForkActionForkedBehavioursEditPart.VISUAL_ID), false,
2098                                true, false, false);
2099                return node;
2100        }
2101 
2102        /**
2103         * @generated
2104         */
2105        public Node createForkedBehaviour_3027(EObject domainElement,
2106                        View containerView, int index, boolean persisted,
2107                        PreferencesHint preferencesHint) {
2108                Shape node = NotationFactory.eINSTANCE.createShape();
2109                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2110                node.setType(PalladioComponentModelVisualIDRegistry
2111                                .getType(ForkedBehaviourEditPart.VISUAL_ID));
2112                ViewUtil.insertChildView(containerView, node, index, persisted);
2113                node.setElement(domainElement);
2114                // initializeFromPreferences 
2115                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2116                                .getPreferenceStore();
2117 
2118                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2119                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2120                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2121                                .getLineStyle_LineColor(), FigureUtilities
2122                                .RGBToInteger(lineRGB));
2123                FontStyle nodeFontStyle = (FontStyle) node
2124                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2125                if (nodeFontStyle != null) {
2126                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2127                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2128                        nodeFontStyle.setFontName(fontData.getName());
2129                        nodeFontStyle.setFontHeight(fontData.getHeight());
2130                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2131                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2132                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2133                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2134                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2135                                        .intValue());
2136                }
2137                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2138                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2139                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2140                                .getFillStyle_FillColor(), FigureUtilities
2141                                .RGBToInteger(fillRGB));
2142                createCompartment(
2143                                node,
2144                                PalladioComponentModelVisualIDRegistry
2145                                                .getType(ForkedBehaviourBehaviourCompartmentEditPart.VISUAL_ID),
2146                                false, false, false, false);
2147                return node;
2148        }
2149 
2150        /**
2151         * @generated
2152         */
2153        public Node createCollectionIteratorAction_3013(EObject domainElement,
2154                        View containerView, int index, boolean persisted,
2155                        PreferencesHint preferencesHint) {
2156                Shape node = NotationFactory.eINSTANCE.createShape();
2157                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2158                node.setType(PalladioComponentModelVisualIDRegistry
2159                                .getType(CollectionIteratorAction2EditPart.VISUAL_ID));
2160                ViewUtil.insertChildView(containerView, node, index, persisted);
2161                node.setElement(domainElement);
2162                // initializeFromPreferences 
2163                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2164                                .getPreferenceStore();
2165 
2166                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2167                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2168                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2169                                .getLineStyle_LineColor(), FigureUtilities
2170                                .RGBToInteger(lineRGB));
2171                FontStyle nodeFontStyle = (FontStyle) node
2172                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2173                if (nodeFontStyle != null) {
2174                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2175                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2176                        nodeFontStyle.setFontName(fontData.getName());
2177                        nodeFontStyle.setFontHeight(fontData.getHeight());
2178                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2179                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2180                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2181                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2182                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2183                                        .intValue());
2184                }
2185                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2186                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2187                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2188                                .getFillStyle_FillColor(), FigureUtilities
2189                                .RGBToInteger(fillRGB));
2190                Node label5013 = createLabel(
2191                                node,
2192                                PalladioComponentModelVisualIDRegistry
2193                                                .getType(CollectionIteratorActionEntityName2EditPart.VISUAL_ID));
2194                Node label5014 = createLabel(
2195                                node,
2196                                PalladioComponentModelVisualIDRegistry
2197                                                .getType(CollectionIteratorParameterLabelEditPart.VISUAL_ID));
2198                return node;
2199        }
2200 
2201        /**
2202         * @generated
2203         */
2204        public Node createResourceDemandingBehaviour_3014(EObject domainElement,
2205                        View containerView, int index, boolean persisted,
2206                        PreferencesHint preferencesHint) {
2207                Shape node = NotationFactory.eINSTANCE.createShape();
2208                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2209                node.setType(PalladioComponentModelVisualIDRegistry
2210                                .getType(ResourceDemandingBehaviour3EditPart.VISUAL_ID));
2211                ViewUtil.insertChildView(containerView, node, index, persisted);
2212                node.setElement(domainElement);
2213                // initializeFromPreferences 
2214                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2215                                .getPreferenceStore();
2216 
2217                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2218                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2219                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2220                                .getLineStyle_LineColor(), FigureUtilities
2221                                .RGBToInteger(lineRGB));
2222                FontStyle nodeFontStyle = (FontStyle) node
2223                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2224                if (nodeFontStyle != null) {
2225                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2226                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2227                        nodeFontStyle.setFontName(fontData.getName());
2228                        nodeFontStyle.setFontHeight(fontData.getHeight());
2229                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2230                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2231                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2232                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2233                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2234                                        .intValue());
2235                }
2236                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2237                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2238                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2239                                .getFillStyle_FillColor(), FigureUtilities
2240                                .RGBToInteger(fillRGB));
2241                createCompartment(
2242                                node,
2243                                PalladioComponentModelVisualIDRegistry
2244                                                .getType(ResourceDemandingBehaviourBehaviourCompartment3EditPart.VISUAL_ID),
2245                                false, false, false, false);
2246                return node;
2247        }
2248 
2249        /**
2250         * @generated
2251         */
2252        public Node createRecoveryAction_3057(EObject domainElement,
2253                        View containerView, int index, boolean persisted,
2254                        PreferencesHint preferencesHint) {
2255                Shape node = NotationFactory.eINSTANCE.createShape();
2256                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2257                node.setType(PalladioComponentModelVisualIDRegistry
2258                                .getType(RecoveryAction2EditPart.VISUAL_ID));
2259                ViewUtil.insertChildView(containerView, node, index, persisted);
2260                node.setElement(domainElement);
2261                // initializeFromPreferences 
2262                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2263                                .getPreferenceStore();
2264 
2265                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2266                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2267                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2268                                .getLineStyle_LineColor(), FigureUtilities
2269                                .RGBToInteger(lineRGB));
2270                FontStyle nodeFontStyle = (FontStyle) node
2271                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2272                if (nodeFontStyle != null) {
2273                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2274                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2275                        nodeFontStyle.setFontName(fontData.getName());
2276                        nodeFontStyle.setFontHeight(fontData.getHeight());
2277                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2278                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2279                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2280                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2281                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2282                                        .intValue());
2283                }
2284                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2285                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2286                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2287                                .getFillStyle_FillColor(), FigureUtilities
2288                                .RGBToInteger(fillRGB));
2289                Node label5055 = createLabel(node,
2290                                PalladioComponentModelVisualIDRegistry
2291                                                .getType(RecoveryActionEntityName2EditPart.VISUAL_ID));
2292                createCompartment(
2293                                node,
2294                                PalladioComponentModelVisualIDRegistry
2295                                                .getType(RecoveryActionRecoveryBlockCompartmentEditPart.VISUAL_ID),
2296                                false, false, false, false);
2297                return node;
2298        }
2299 
2300        /**
2301         * @generated
2302         */
2303        public Node createRecoveryActionBehaviour_3058(EObject domainElement,
2304                        View containerView, int index, boolean persisted,
2305                        PreferencesHint preferencesHint) {
2306                Shape node = NotationFactory.eINSTANCE.createShape();
2307                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2308                node.setType(PalladioComponentModelVisualIDRegistry
2309                                .getType(RecoveryActionBehaviourEditPart.VISUAL_ID));
2310                ViewUtil.insertChildView(containerView, node, index, persisted);
2311                node.setElement(domainElement);
2312                // initializeFromPreferences 
2313                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2314                                .getPreferenceStore();
2315 
2316                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2317                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2318                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2319                                .getLineStyle_LineColor(), FigureUtilities
2320                                .RGBToInteger(lineRGB));
2321                FontStyle nodeFontStyle = (FontStyle) node
2322                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2323                if (nodeFontStyle != null) {
2324                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2325                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2326                        nodeFontStyle.setFontName(fontData.getName());
2327                        nodeFontStyle.setFontHeight(fontData.getHeight());
2328                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2329                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2330                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2331                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2332                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2333                                        .intValue());
2334                }
2335                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2336                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2337                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2338                                .getFillStyle_FillColor(), FigureUtilities
2339                                .RGBToInteger(fillRGB));
2340                Node label5054 = createLabel(
2341                                node,
2342                                PalladioComponentModelVisualIDRegistry
2343                                                .getType(RecoveryActionBehaviourEntityNameEditPart.VISUAL_ID));
2344                createCompartment(
2345                                node,
2346                                PalladioComponentModelVisualIDRegistry
2347                                                .getType(RecoveryActionBehaviourAlternativeBehaviourCompartmentEditPart.VISUAL_ID),
2348                                false, false, false, false);
2349                return node;
2350        }
2351 
2352        /**
2353         * @generated
2354         */
2355        public Node createSynchronisationPoint_3038(EObject domainElement,
2356                        View containerView, int index, boolean persisted,
2357                        PreferencesHint preferencesHint) {
2358                Shape node = NotationFactory.eINSTANCE.createShape();
2359                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2360                node.setType(PalladioComponentModelVisualIDRegistry
2361                                .getType(SynchronisationPointEditPart.VISUAL_ID));
2362                ViewUtil.insertChildView(containerView, node, index, persisted);
2363                node.setElement(domainElement);
2364                // initializeFromPreferences 
2365                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2366                                .getPreferenceStore();
2367 
2368                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2369                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2370                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2371                                .getLineStyle_LineColor(), FigureUtilities
2372                                .RGBToInteger(lineRGB));
2373                FontStyle nodeFontStyle = (FontStyle) node
2374                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2375                if (nodeFontStyle != null) {
2376                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2377                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2378                        nodeFontStyle.setFontName(fontData.getName());
2379                        nodeFontStyle.setFontHeight(fontData.getHeight());
2380                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2381                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2382                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2383                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2384                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2385                                        .intValue());
2386                }
2387                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2388                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2389                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2390                                .getFillStyle_FillColor(), FigureUtilities
2391                                .RGBToInteger(fillRGB));
2392                createCompartment(
2393                                node,
2394                                PalladioComponentModelVisualIDRegistry
2395                                                .getType(SynchronisationPointSynchronisationPointEditPart.VISUAL_ID),
2396                                false, false, false, false);
2397                return node;
2398        }
2399 
2400        /**
2401         * @generated
2402         */
2403        public Node createForkedBehaviour_3039(EObject domainElement,
2404                        View containerView, int index, boolean persisted,
2405                        PreferencesHint preferencesHint) {
2406                Shape node = NotationFactory.eINSTANCE.createShape();
2407                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2408                node.setType(PalladioComponentModelVisualIDRegistry
2409                                .getType(ForkedBehaviour2EditPart.VISUAL_ID));
2410                ViewUtil.insertChildView(containerView, node, index, persisted);
2411                node.setElement(domainElement);
2412                // initializeFromPreferences 
2413                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2414                                .getPreferenceStore();
2415 
2416                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2417                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2418                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2419                                .getLineStyle_LineColor(), FigureUtilities
2420                                .RGBToInteger(lineRGB));
2421                FontStyle nodeFontStyle = (FontStyle) node
2422                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2423                if (nodeFontStyle != null) {
2424                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2425                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2426                        nodeFontStyle.setFontName(fontData.getName());
2427                        nodeFontStyle.setFontHeight(fontData.getHeight());
2428                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2429                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2430                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2431                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2432                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2433                                        .intValue());
2434                }
2435                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2436                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2437                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2438                                .getFillStyle_FillColor(), FigureUtilities
2439                                .RGBToInteger(fillRGB));
2440                createCompartment(
2441                                node,
2442                                PalladioComponentModelVisualIDRegistry
2443                                                .getType(ForkedBehaviourSynchronisationPointForkedBehavioursEditPart.VISUAL_ID),
2444                                false, false, false, false);
2445                return node;
2446        }
2447 
2448        /**
2449         * @generated
2450         */
2451        public Node createSetVariableAction_3024(EObject domainElement,
2452                        View containerView, int index, boolean persisted,
2453                        PreferencesHint preferencesHint) {
2454                Shape node = NotationFactory.eINSTANCE.createShape();
2455                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2456                node.setType(PalladioComponentModelVisualIDRegistry
2457                                .getType(SetVariableAction2EditPart.VISUAL_ID));
2458                ViewUtil.insertChildView(containerView, node, index, persisted);
2459                node.setElement(domainElement);
2460                // initializeFromPreferences 
2461                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2462                                .getPreferenceStore();
2463 
2464                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2465                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2466                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2467                                .getLineStyle_LineColor(), FigureUtilities
2468                                .RGBToInteger(lineRGB));
2469                FontStyle nodeFontStyle = (FontStyle) node
2470                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2471                if (nodeFontStyle != null) {
2472                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2473                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2474                        nodeFontStyle.setFontName(fontData.getName());
2475                        nodeFontStyle.setFontHeight(fontData.getHeight());
2476                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2477                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2478                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2479                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2480                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2481                                        .intValue());
2482                }
2483                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2484                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2485                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2486                                .getFillStyle_FillColor(), FigureUtilities
2487                                .RGBToInteger(fillRGB));
2488                Node label5027 = createLabel(
2489                                node,
2490                                PalladioComponentModelVisualIDRegistry
2491                                                .getType(SetVariableActionEntityName2EditPart.VISUAL_ID));
2492                createCompartment(node, PalladioComponentModelVisualIDRegistry
2493                                .getType(SetVariableActionVariableSetterEditPart.VISUAL_ID),
2494                                true, true, true, true);
2495                return node;
2496        }
2497 
2498        /**
2499         * @generated
2500         */
2501        public Node createVariableUsage_3036(EObject domainElement,
2502                        View containerView, int index, boolean persisted,
2503                        PreferencesHint preferencesHint) {
2504                Node node = NotationFactory.eINSTANCE.createNode();
2505                node.getStyles()
2506                                .add(NotationFactory.eINSTANCE.createDescriptionStyle());
2507                node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
2508                node.getStyles().add(NotationFactory.eINSTANCE.createLineStyle());
2509                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2510                node.setType(PalladioComponentModelVisualIDRegistry
2511                                .getType(VariableUsage3EditPart.VISUAL_ID));
2512                ViewUtil.insertChildView(containerView, node, index, persisted);
2513                node.setElement(domainElement);
2514                // initializeFromPreferences 
2515                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2516                                .getPreferenceStore();
2517 
2518                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2519                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2520                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2521                                .getLineStyle_LineColor(), FigureUtilities
2522                                .RGBToInteger(lineRGB));
2523                FontStyle nodeFontStyle = (FontStyle) node
2524                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2525                if (nodeFontStyle != null) {
2526                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2527                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2528                        nodeFontStyle.setFontName(fontData.getName());
2529                        nodeFontStyle.setFontHeight(fontData.getHeight());
2530                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2531                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2532                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2533                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2534                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2535                                        .intValue());
2536                }
2537                Node label5035 = createLabel(node,
2538                                PalladioComponentModelVisualIDRegistry
2539                                                .getType(VariableUsage3LabelEditPart.VISUAL_ID));
2540                createCompartment(
2541                                node,
2542                                PalladioComponentModelVisualIDRegistry
2543                                                .getType(VariableUsageVariableCharacterisation3EditPart.VISUAL_ID),
2544                                true, true, true, true);
2545                return node;
2546        }
2547 
2548        /**
2549         * @generated
2550         */
2551        public Node createVariableCharacterisation_3055(EObject domainElement,
2552                        View containerView, int index, boolean persisted,
2553                        PreferencesHint preferencesHint) {
2554                Node node = NotationFactory.eINSTANCE.createNode();
2555                node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
2556                node.setType(PalladioComponentModelVisualIDRegistry
2557                                .getType(VariableCharacterisation5EditPart.VISUAL_ID));
2558                ViewUtil.insertChildView(containerView, node, index, persisted);
2559                node.setElement(domainElement);
2560                return node;
2561        }
2562 
2563        /**
2564         * @generated
2565         */
2566        public Node createVariableCharacterisation_3048(EObject domainElement,
2567                        View containerView, int index, boolean persisted,
2568                        PreferencesHint preferencesHint) {
2569                Node node = NotationFactory.eINSTANCE.createNode();
2570                node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
2571                node.setType(PalladioComponentModelVisualIDRegistry
2572                                .getType(VariableCharacterisation4EditPart.VISUAL_ID));
2573                ViewUtil.insertChildView(containerView, node, index, persisted);
2574                node.setElement(domainElement);
2575                return node;
2576        }
2577 
2578        /**
2579         * @generated
2580         */
2581        public Node createVariableCharacterisation_3037(EObject domainElement,
2582                        View containerView, int index, boolean persisted,
2583                        PreferencesHint preferencesHint) {
2584                Node node = NotationFactory.eINSTANCE.createNode();
2585                node.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
2586                node.setType(PalladioComponentModelVisualIDRegistry
2587                                .getType(VariableCharacterisation3EditPart.VISUAL_ID));
2588                ViewUtil.insertChildView(containerView, node, index, persisted);
2589                node.setElement(domainElement);
2590                return node;
2591        }
2592 
2593        /**
2594         * @generated
2595         */
2596        public Node createGuardedBranchTransition_3017(EObject domainElement,
2597                        View containerView, int index, boolean persisted,
2598                        PreferencesHint preferencesHint) {
2599                Shape node = NotationFactory.eINSTANCE.createShape();
2600                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2601                node.setType(PalladioComponentModelVisualIDRegistry
2602                                .getType(GuardedBranchTransitionEditPart.VISUAL_ID));
2603                ViewUtil.insertChildView(containerView, node, index, persisted);
2604                node.setElement(domainElement);
2605                // initializeFromPreferences 
2606                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2607                                .getPreferenceStore();
2608 
2609                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2610                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2611                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2612                                .getLineStyle_LineColor(), FigureUtilities
2613                                .RGBToInteger(lineRGB));
2614                FontStyle nodeFontStyle = (FontStyle) node
2615                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2616                if (nodeFontStyle != null) {
2617                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2618                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2619                        nodeFontStyle.setFontName(fontData.getName());
2620                        nodeFontStyle.setFontHeight(fontData.getHeight());
2621                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2622                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2623                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2624                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2625                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2626                                        .intValue());
2627                }
2628                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2629                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2630                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2631                                .getFillStyle_FillColor(), FigureUtilities
2632                                .RGBToInteger(fillRGB));
2633                Node label5018 = createLabel(
2634                                node,
2635                                PalladioComponentModelVisualIDRegistry
2636                                                .getType(GuardedBranchTransitionEntityNameEditPart.VISUAL_ID));
2637                Node label5036 = createLabel(node,
2638                                PalladioComponentModelVisualIDRegistry
2639                                                .getType(GuardedBranchTransitionIdEditPart.VISUAL_ID));
2640                return node;
2641        }
2642 
2643        /**
2644         * @generated
2645         */
2646        public Node createResourceDemandingBehaviour_3018(EObject domainElement,
2647                        View containerView, int index, boolean persisted,
2648                        PreferencesHint preferencesHint) {
2649                Shape node = NotationFactory.eINSTANCE.createShape();
2650                node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
2651                node.setType(PalladioComponentModelVisualIDRegistry
2652                                .getType(ResourceDemandingBehaviour4EditPart.VISUAL_ID));
2653                ViewUtil.insertChildView(containerView, node, index, persisted);
2654                node.setElement(domainElement);
2655                // initializeFromPreferences 
2656                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2657                                .getPreferenceStore();
2658 
2659                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2660                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2661                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2662                                .getLineStyle_LineColor(), FigureUtilities
2663                                .RGBToInteger(lineRGB));
2664                FontStyle nodeFontStyle = (FontStyle) node
2665                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2666                if (nodeFontStyle != null) {
2667                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2668                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2669                        nodeFontStyle.setFontName(fontData.getName());
2670                        nodeFontStyle.setFontHeight(fontData.getHeight());
2671                        nodeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2672                        nodeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2673                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2674                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2675                        nodeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2676                                        .intValue());
2677                }
2678                org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
2679                                prefStore, IPreferenceConstants.PREF_FILL_COLOR);
2680                ViewUtil.setStructuralFeatureValue(node, NotationPackage.eINSTANCE
2681                                .getFillStyle_FillColor(), FigureUtilities
2682                                .RGBToInteger(fillRGB));
2683                createCompartment(
2684                                node,
2685                                PalladioComponentModelVisualIDRegistry
2686                                                .getType(ResourceDemandingBehaviourBehaviourCompartment4EditPart.VISUAL_ID),
2687                                false, false, false, false);
2688                return node;
2689        }
2690 
2691        /**
2692         * @generated
2693         */
2694        public Edge createAbstractActionSuccessor_AbstractAction_4001(
2695                        View containerView, int index, boolean persisted,
2696                        PreferencesHint preferencesHint) {
2697                Connector edge = NotationFactory.eINSTANCE.createConnector();
2698                edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
2699                RelativeBendpoints bendpoints = NotationFactory.eINSTANCE
2700                                .createRelativeBendpoints();
2701                ArrayList points = new ArrayList(2);
2702                points.add(new RelativeBendpoint());
2703                points.add(new RelativeBendpoint());
2704                bendpoints.setPoints(points);
2705                edge.setBendpoints(bendpoints);
2706                ViewUtil.insertChildView(containerView, edge, index, persisted);
2707                edge
2708                                .setType(PalladioComponentModelVisualIDRegistry
2709                                                .getType(AbstractActionSuccessor_AbstractActionEditPart.VISUAL_ID));
2710                edge.setElement(null);
2711                // initializePreferences
2712                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2713                                .getPreferenceStore();
2714 
2715                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2716                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2717                ViewUtil.setStructuralFeatureValue(edge, NotationPackage.eINSTANCE
2718                                .getLineStyle_LineColor(), FigureUtilities
2719                                .RGBToInteger(lineRGB));
2720                FontStyle edgeFontStyle = (FontStyle) edge
2721                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2722                if (edgeFontStyle != null) {
2723                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2724                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2725                        edgeFontStyle.setFontName(fontData.getName());
2726                        edgeFontStyle.setFontHeight(fontData.getHeight());
2727                        edgeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2728                        edgeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2729                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2730                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2731                        edgeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2732                                        .intValue());
2733                }
2734                Routing routing = Routing.get(prefStore
2735                                .getInt(IPreferenceConstants.PREF_LINE_STYLE));
2736                if (routing != null) {
2737                        ViewUtil.setStructuralFeatureValue(edge, NotationPackage.eINSTANCE
2738                                        .getRoutingStyle_Routing(), routing);
2739                }
2740                return edge;
2741        }
2742 
2743        /**
2744         * @generated
2745         */
2746        public Edge createRecoveryActionBehaviourFailureHandlingAlternatives__RecoveryActionBehaviour_4004(
2747                        View containerView, int index, boolean persisted,
2748                        PreferencesHint preferencesHint) {
2749                Connector edge = NotationFactory.eINSTANCE.createConnector();
2750                edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
2751                RelativeBendpoints bendpoints = NotationFactory.eINSTANCE
2752                                .createRelativeBendpoints();
2753                ArrayList points = new ArrayList(2);
2754                points.add(new RelativeBendpoint());
2755                points.add(new RelativeBendpoint());
2756                bendpoints.setPoints(points);
2757                edge.setBendpoints(bendpoints);
2758                ViewUtil.insertChildView(containerView, edge, index, persisted);
2759                edge
2760                                .setType(PalladioComponentModelVisualIDRegistry
2761                                                .getType(RecoveryActionBehaviourFailureHandlingAlternatives__RecoveryActionBehaviourEditPart.VISUAL_ID));
2762                edge.setElement(null);
2763                // initializePreferences
2764                final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
2765                                .getPreferenceStore();
2766 
2767                org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(
2768                                prefStore, IPreferenceConstants.PREF_LINE_COLOR);
2769                ViewUtil.setStructuralFeatureValue(edge, NotationPackage.eINSTANCE
2770                                .getLineStyle_LineColor(), FigureUtilities
2771                                .RGBToInteger(lineRGB));
2772                FontStyle edgeFontStyle = (FontStyle) edge
2773                                .getStyle(NotationPackage.Literals.FONT_STYLE);
2774                if (edgeFontStyle != null) {
2775                        FontData fontData = PreferenceConverter.getFontData(prefStore,
2776                                        IPreferenceConstants.PREF_DEFAULT_FONT);
2777                        edgeFontStyle.setFontName(fontData.getName());
2778                        edgeFontStyle.setFontHeight(fontData.getHeight());
2779                        edgeFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
2780                        edgeFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
2781                        org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter
2782                                        .getColor(prefStore, IPreferenceConstants.PREF_FONT_COLOR);
2783                        edgeFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB)
2784                                        .intValue());
2785                }
2786                Routing routing = Routing.get(prefStore
2787                                .getInt(IPreferenceConstants.PREF_LINE_STYLE));
2788                if (routing != null) {
2789                        ViewUtil.setStructuralFeatureValue(edge, NotationPackage.eINSTANCE
2790                                        .getRoutingStyle_Routing(), routing);
2791                }
2792                return edge;
2793        }
2794 
2795        /**
2796         * @generated
2797         */
2798        private void stampShortcut(View containerView, Node target) {
2799                if (!ResourceDemandingSEFFEditPart.MODEL_ID
2800                                .equals(PalladioComponentModelVisualIDRegistry
2801                                                .getModelID(containerView))) {
2802                        EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE
2803                                        .createEAnnotation();
2804                        shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
2805                        shortcutAnnotation.getDetails().put(
2806                                        "modelID", ResourceDemandingSEFFEditPart.MODEL_ID); //$NON-NLS-1$
2807                        target.getEAnnotations().add(shortcutAnnotation);
2808                }
2809        }
2810 
2811        /**
2812         * @generated
2813         */
2814        private Node createLabel(View owner, String hint) {
2815                DecorationNode rv = NotationFactory.eINSTANCE.createDecorationNode();
2816                rv.setType(hint);
2817                ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
2818                return rv;
2819        }
2820 
2821        /**
2822         * @generated
2823         */
2824        private Node createCompartment(View owner, String hint,
2825                        boolean canCollapse, boolean hasTitle, boolean canSort,
2826                        boolean canFilter) {
2827                //SemanticListCompartment rv = NotationFactory.eINSTANCE.createSemanticListCompartment();
2828                //rv.setShowTitle(showTitle);
2829                //rv.setCollapsed(isCollapsed);
2830                Node rv;
2831                if (canCollapse) {
2832                        rv = NotationFactory.eINSTANCE.createBasicCompartment();
2833                } else {
2834                        rv = NotationFactory.eINSTANCE.createDecorationNode();
2835                }
2836                if (hasTitle) {
2837                        TitleStyle ts = NotationFactory.eINSTANCE.createTitleStyle();
2838                        ts.setShowTitle(true);
2839                        rv.getStyles().add(ts);
2840                }
2841                if (canSort) {
2842                        rv.getStyles().add(NotationFactory.eINSTANCE.createSortingStyle());
2843                }
2844                if (canFilter) {
2845                        rv.getStyles()
2846                                        .add(NotationFactory.eINSTANCE.createFilteringStyle());
2847                }
2848                rv.setType(hint);
2849                ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
2850                return rv;
2851        }
2852 
2853        /**
2854         * @generated
2855         */
2856        private EObject getSemanticElement(IAdaptable semanticAdapter) {
2857                if (semanticAdapter == null) {
2858                        return null;
2859                }
2860                EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
2861                if (eObject != null) {
2862                        return EMFCoreUtil.resolve(TransactionUtil
2863                                        .getEditingDomain(eObject), eObject);
2864                }
2865                return null;
2866        }
2867 
2868        /**
2869         * @generated
2870         */
2871        private IElementType getSemanticElementType(IAdaptable semanticAdapter) {
2872                if (semanticAdapter == null) {
2873                        return null;
2874                }
2875                return (IElementType) semanticAdapter.getAdapter(IElementType.class);
2876        }
2877 
2878}

[all classes][de.uka.ipd.sdq.pcm.gmf.seff.providers]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov