Methods Summary |
---|
public void | dispose()
// pass
|
public java.lang.Object[] | getChildren(java.lang.Object parentElement)
if (parentElement instanceof UiElementNode) {
UiElementNode node = (UiElementNode) parentElement;
return node.getUiChildren().toArray();
}
return null;
|
public java.lang.Object[] | getElements(java.lang.Object inputElement)
ArrayList<UiElementNode> roots = new ArrayList<UiElementNode>();
if (mUiRootNode != null) {
for (UiElementNode ui_node : mUiRootNode.getUiChildren()) {
if (mDescriptorFilters == null || mDescriptorFilters.length == 0) {
roots.add(ui_node);
} else {
for (ElementDescriptor filter : mDescriptorFilters) {
if (ui_node.getDescriptor() == filter) {
roots.add(ui_node);
}
}
}
}
}
return roots.toArray();
|
public java.lang.Object | getParent(java.lang.Object element)
if (element instanceof UiElementNode) {
UiElementNode node = (UiElementNode) element;
return node.getUiParent();
}
return null;
|
public boolean | hasChildren(java.lang.Object element)
if (element instanceof UiElementNode) {
UiElementNode node = (UiElementNode) element;
return node.getUiChildren().size() > 0;
}
return false;
|
public void | inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
// pass
|