use of org.eclipse.xsd.XSDRedefineContent in project webtools.sourceediting by eclipse.
the class XSDRedefineAdapter method getCategoryChildren.
private List getCategoryChildren(int category) {
List list = new ArrayList();
XSDRedefine redefine = (XSDRedefine) target;
Iterator iterator = redefine.getContents().iterator();
while (iterator.hasNext()) {
XSDRedefineContent redefineContent = (XSDRedefineContent) iterator.next();
if (redefineContent instanceof XSDAttributeGroupDefinition && category == CategoryAdapter.ATTRIBUTES) {
list.add(redefineContent);
} else if (redefineContent instanceof XSDModelGroupDefinition && category == CategoryAdapter.GROUPS) {
list.add(redefineContent);
} else if (redefineContent instanceof XSDComplexTypeDefinition && category == CategoryAdapter.TYPES) {
list.add(redefineContent);
} else if (redefineContent instanceof XSDSimpleTypeDefinition && category == CategoryAdapter.TYPES) {
list.add(redefineContent);
}
}
List adapterList = new ArrayList();
populateAdapterList(list, adapterList);
return adapterList;
}
Aggregations