use of org.eclipse.che.ide.ext.java.client.search.node.NodeComparator in project che by eclipse.
the class TypeNode method getChildrenImpl.
/** {@inheritDoc} */
@Override
public Promise<List<Node>> getChildrenImpl() {
return createFromAsyncRequest(callback -> {
List<Node> child = new ArrayList<>();
createTypeChildren(child, type, isFromSuper);
if (type.isPrimary()) {
for (Type type : compilationUnit.getSuperTypes()) {
createTypeChildren(child, type, true);
}
}
Collections.sort(child, new NodeComparator());
callback.onSuccess(child);
});
}
Aggregations