public static List<CismodelNodeDescriptor> getModeler_1000SemanticChildren(
View view) {
if (!view.isSetElement()) {
return Collections.emptyList();
}
Modeler modelElement = (Modeler) view.getElement();
LinkedList<CismodelNodeDescriptor> result = new LinkedList<CismodelNodeDescriptor>();
for (Iterator<?> it = modelElement.getEngineDevices().iterator(); it
.hasNext();) {
EngineDevice childElement = (EngineDevice) it.next();
int visualID = CismodelVisualIDRegistry.getNodeVisualID(view,
childElement);
if (visualID == EngineDeviceEditPart.VISUAL_ID) {
result.add(new CismodelNodeDescriptor(childElement, visualID));
continue;
}
}
for (Iterator<?> it = modelElement.getShieldDevices().iterator(); it
.hasNext();) {
ShieldDevice childElement = (ShieldDevice) it.next();
int visualID = CismodelVisualIDRegistry.getNodeVisualID(view,
childElement);
if (visualID == ShieldDeviceEditPart.VISUAL_ID) {
result.add(new CismodelNodeDescriptor(childElement, visualID));
continue;
}
}
for (Iterator<?> it = modelElement.getWeaponDevices().iterator(); it
.hasNext();) {
AbstractWeapon childElement = (AbstractWeapon) it.next();
int visualID = CismodelVisualIDRegistry.getNodeVisualID(view,
childElement);
if (visualID == BeamEditPart.VISUAL_ID) {