use of org.eclipse.wst.common.ui.internal.search.dialogs.IComponentList in project webtools.sourceediting by eclipse.
the class AddXSDRedefinedComplexTypeAction method buildComponentsList.
protected void buildComponentsList(XSDRedefine xsdRedefine, Set redefinedComponentsNames, IComponentList componentList) {
List typeDefinitions = xsdRedefine.getIncorporatedSchema().getTypeDefinitions();
Iterator iterator = typeDefinitions.iterator();
while (iterator.hasNext()) {
XSDTypeDefinition typeDefinition = (XSDTypeDefinition) iterator.next();
String typeDefinitionName = typeDefinition.getName();
if (typeDefinition instanceof XSDComplexTypeDefinition && !redefinedComponentsNames.contains(typeDefinitionName)) {
componentList.add(typeDefinition);
}
}
}
use of org.eclipse.wst.common.ui.internal.search.dialogs.IComponentList in project webtools.sourceediting by eclipse.
the class AddXSDRedefinedSimpleTypeAction method buildComponentsList.
protected void buildComponentsList(XSDRedefine xsdRedefine, Set redefinedComponentsNames, IComponentList componentList) {
List typeDefinitions = xsdRedefine.getIncorporatedSchema().getTypeDefinitions();
Iterator iterator = typeDefinitions.iterator();
while (iterator.hasNext()) {
XSDTypeDefinition typeDefinition = (XSDTypeDefinition) iterator.next();
String typeDefinitionName = typeDefinition.getName();
if (typeDefinition instanceof XSDSimpleTypeDefinition && !redefinedComponentsNames.contains(typeDefinitionName)) {
componentList.add(typeDefinition);
}
}
}
Aggregations