Methods Summary |
---|
public void | dispose()
// pass
|
public java.lang.Object[] | getChildren(java.lang.Object parentElement)
if (parentElement instanceof ResourceType) {
return mResources.getResources((ResourceType)parentElement);
} else if (mFullLevels && parentElement instanceof ConfigurableResourceItem) {
return ((ConfigurableResourceItem)parentElement).getSourceFileArray();
}
return null;
|
public java.lang.Object[] | getElements(java.lang.Object inputElement)
if (inputElement instanceof IResourceRepository) {
if ((IResourceRepository)inputElement == mResources) {
// get the top level resources.
return mResources.getAvailableResourceTypes();
}
}
return new Object[0];
|
public java.lang.Object | getParent(java.lang.Object element)
// pass
return null;
|
public boolean | hasChildren(java.lang.Object element)
if (element instanceof ResourceType) {
return mResources.hasResources((ResourceType)element);
} else if (mFullLevels && element instanceof ConfigurableResourceItem) {
return ((ConfigurableResourceItem)element).hasAlternates();
}
return false;
|
public void | inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
if (newInput instanceof IResourceRepository) {
mResources = (IResourceRepository)newInput;
}
|