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

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelNavigatorContentProvider.java]

nameclass, %method, %block, %line, %
PalladioComponentModelNavigatorContentProvider.java0%   (0/4)0%   (0/33)0%   (0/6016)0%   (0/1962)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelNavigatorContentProvider0%   (0/1)0%   (0/24)0%   (0/5879)0%   (0/1930)
<static initializer> 0%   (0/1)0%   (0/4)0%   (0/2)
PalladioComponentModelNavigatorContentProvider (): void 0%   (0/1)0%   (0/33)0%   (0/9)
access$0 (PalladioComponentModelNavigatorContentProvider): Viewer 0%   (0/1)0%   (0/3)0%   (0/1)
access$1 (PalladioComponentModelNavigatorContentProvider): AdapterFactoryEdit... 0%   (0/1)0%   (0/3)0%   (0/1)
access$2 (PalladioComponentModelNavigatorContentProvider): Runnable 0%   (0/1)0%   (0/3)0%   (0/1)
createNavigatorItems (Collection, Object, boolean): Collection 0%   (0/1)0%   (0/24)0%   (0/5)
dispose (): void 0%   (0/1)0%   (0/33)0%   (0/10)
getChildren (Object): Object [] 0%   (0/1)0%   (0/71)0%   (0/20)
getChildrenByType (Collection, String): Collection 0%   (0/1)0%   (0/25)0%   (0/5)
getDiagramLinksByType (Collection, String): Collection 0%   (0/1)0%   (0/25)0%   (0/5)
getElements (Object): Object [] 0%   (0/1)0%   (0/4)0%   (0/1)
getIncomingLinksByType (Collection, String): Collection 0%   (0/1)0%   (0/25)0%   (0/5)
getLinksSourceByType (Collection, String): Collection 0%   (0/1)0%   (0/33)0%   (0/8)
getLinksTargetByType (Collection, String): Collection 0%   (0/1)0%   (0/33)0%   (0/8)
getOutgoingLinksByType (Collection, String): Collection 0%   (0/1)0%   (0/25)0%   (0/5)
getParent (Object): Object 0%   (0/1)0%   (0/11)0%   (0/4)
getViewChildren (View, Object): Object [] 0%   (0/1)0%   (0/5470)0%   (0/1826)
hasChildren (Object): boolean 0%   (0/1)0%   (0/12)0%   (0/1)
init (ICommonContentExtensionSite): void 0%   (0/1)0%   (0/1)0%   (0/1)
inputChanged (Viewer, Object, Object): void 0%   (0/1)0%   (0/4)0%   (0/2)
isOwnView (View): boolean 0%   (0/1)0%   (0/5)0%   (0/2)
restoreState (IMemento): void 0%   (0/1)0%   (0/1)0%   (0/1)
saveState (IMemento): void 0%   (0/1)0%   (0/1)0%   (0/1)
selectViewsByType (Collection, String): Collection 0%   (0/1)0%   (0/30)0%   (0/6)
     
class PalladioComponentModelNavigatorContentProvider$10%   (0/1)0%   (0/2)0%   (0/19)0%   (0/5)
PalladioComponentModelNavigatorContentProvider$1 (PalladioComponentModelNavig... 0%   (0/1)0%   (0/6)0%   (0/2)
get (Object): Object 0%   (0/1)0%   (0/13)0%   (0/3)
     
class PalladioComponentModelNavigatorContentProvider$20%   (0/1)0%   (0/2)0%   (0/15)0%   (0/5)
PalladioComponentModelNavigatorContentProvider$2 (PalladioComponentModelNavig... 0%   (0/1)0%   (0/6)0%   (0/2)
run (): void 0%   (0/1)0%   (0/9)0%   (0/3)
     
class PalladioComponentModelNavigatorContentProvider$30%   (0/1)0%   (0/5)0%   (0/103)0%   (0/27)
PalladioComponentModelNavigatorContentProvider$3 (PalladioComponentModelNavig... 0%   (0/1)0%   (0/6)0%   (0/2)
dispose (): void 0%   (0/1)0%   (0/1)0%   (0/1)
handleResourceChanged (Resource): boolean 0%   (0/1)0%   (0/32)0%   (0/8)
handleResourceDeleted (Resource): boolean 0%   (0/1)0%   (0/32)0%   (0/8)
handleResourceMoved (Resource, URI): boolean 0%   (0/1)0%   (0/32)0%   (0/8)

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

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