use of org.jboss.tools.openshift.internal.core.util.ResourceKindAndNameComparator in project jbosstools-openshift by jbosstools.
the class ResourceDetailsContentProvider method getElements.
@SuppressWarnings("unchecked")
@Override
public Object[] getElements(Object rootElements) {
if (!(rootElements instanceof Collection)) {
return new Object[] {};
}
List<IResource> resources = new ArrayList<>((Collection<IResource>) rootElements);
Collections.sort(resources, new ResourceKindAndNameComparator());
return resources.toArray();
}
Aggregations