/** @generated */ public static List getAdaptiveProcessAdaptiveProcessCompartment_5001SemanticChildren(View view) { if (false == view.eContainer() instanceof View) { return Collections.EMPTY_LIST; } View containerView = (View) view.eContainer(); if (!containerView.isSetElement()) { return Collections.EMPTY_LIST; } hub.top.adaptiveSystem.AdaptiveProcess modelElement = (hub.top.adaptiveSystem.AdaptiveProcess) containerView.getElement(); List result = new LinkedList(); for (Iterator it = modelElement.getNodes().iterator(); it.hasNext(); ) { hub.top.adaptiveSystem.Node childElement = (hub.top.adaptiveSystem.Node) it.next(); int visualID = hub.top.adaptiveSystem.diagram.part.AdaptiveSystemVisualIDRegistry.getNodeVisualID( view, childElement); if (visualID == hub.top.adaptiveSystem.diagram.edit.parts.ConditionAPEditPart.VISUAL_ID) { result.add( new hub.top.adaptiveSystem.diagram.part.AdaptiveSystemNodeDescriptor( childElement, visualID)); continue; } if (visualID == hub.top.adaptiveSystem.diagram.edit.parts.EventAPEditPart.VISUAL_ID) { result.add( new hub.top.adaptiveSystem.diagram.part.AdaptiveSystemNodeDescriptor( childElement, visualID)); continue; } } return result; }
/** @generated */ private String getAdaptiveProcess_1001Text(View view) { hub.top.adaptiveSystem.AdaptiveProcess domainModelElement = (hub.top.adaptiveSystem.AdaptiveProcess) view.getElement(); if (domainModelElement != null) { return domainModelElement.getName(); } else { hub.top .adaptiveSystem .diagram .part .AdaptiveSystemDiagramEditorPlugin .getInstance() .logError("No domain element for view with visualID = " + 1001); // $NON-NLS-1$ return ""; //$NON-NLS-1$ } }