public static List<DispelNodeDescriptor> getPackage_1000SemanticChildren(
View view) {
if (!view.isSetElement()) {
return Collections.emptyList();
}
Package modelElement = (Package) view.getElement();
LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
for (Iterator<?> it = modelElement.getStatements().iterator(); it
.hasNext();) {
Statement childElement = (Statement) it.next();
int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
childElement);
if (visualID == LocalVariableStatementEditPart.VISUAL_ID) {
result.add(new DispelNodeDescriptor(childElement, visualID));
continue;
}
if (visualID == DispelFunctionEditPart.VISUAL_ID) {
result.add(new DispelNodeDescriptor(childElement, visualID));
continue;
}
if (visualID == ConnectionStatementEditPart.VISUAL_ID) {
result.add(new DispelNodeDescriptor(childElement, visualID));
continue;
}
}
for (Iterator<?> it = modelElement.getSubPackages().iterator(); it
.hasNext();) {
Package childElement = (Package) it.next();
int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
childElement);
if (visualID == Package2EditPart.VISUAL_ID) {
result.add(new DispelNodeDescriptor(childElement, visualID));
continue;