Methods Summary |
---|
public void | dispose()
|
public java.lang.Object[] | getChildren(java.lang.Object parentElement)
if (parentElement instanceof FileEntry) {
FileEntry parentEntry = (FileEntry)parentElement;
Object[] oldEntries = parentEntry.getCachedChildren();
Object[] newEntries = mFileListingService.getChildren(parentEntry,
true, sListingReceiver);
if (newEntries != null) {
return newEntries;
} else {
// if null was returned, this means the cache was not valid,
// and a thread was launched for ls. sListingReceiver will be
// notified with the new entries.
return oldEntries;
}
}
return new Object[0];
|
public java.lang.Object[] | getElements(java.lang.Object inputElement)
if (inputElement instanceof FileEntry) {
FileEntry entry = (FileEntry)inputElement;
if (entry.isRoot()) {
return getChildren(mRootEntry);
}
}
return null;
|
public java.lang.Object | getParent(java.lang.Object element)
if (element instanceof FileEntry) {
FileEntry entry = (FileEntry)element;
return entry.getParent();
}
return null;
|
public boolean | hasChildren(java.lang.Object element)
if (element instanceof FileEntry) {
FileEntry entry = (FileEntry)element;
return entry.getType() == FileListingService.TYPE_DIRECTORY;
}
return false;
|
public void | inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
if (viewer instanceof TreeViewer) {
mViewer = (TreeViewer)viewer;
}
if (newInput instanceof FileEntry) {
mRootEntry = (FileEntry)newInput;
}
|
public void | setListingService(com.android.ddmlib.FileListingService fls)
mFileListingService = fls;
|