use of org.eclipse.ui.model.IWorkbenchAdapter in project core by jcryptool.
the class FileExplorerContentProvider method getChildren.
/*
* (non-Javadoc) Method declared on ITreeContentProvider.
*/
public Object[] getChildren(Object element) {
List<Object> result = new LinkedList<Object>();
IWorkbenchAdapter adapter = getAdapter(element);
if (adapter != null) {
Object[] children = adapter.getChildren(element);
for (Object child : children) {
if (canAdd(child))
result.add(child);
}
}
return result.toArray();
}
Aggregations