Methods Summary |
---|
public void | addListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
// we don't need listeners.
|
public void | dispose()
|
public org.eclipse.swt.graphics.Image | getColumnImage(java.lang.Object element, int columnIndex)
if (columnIndex == 0) {
if (element instanceof FileEntry) {
FileEntry entry = (FileEntry)element;
switch (entry.getType()) {
case FileListingService.TYPE_FILE:
case FileListingService.TYPE_LINK:
// get the name and extension
if (entry.isApplicationPackage()) {
return mPackageImage;
}
return mFileImage;
case FileListingService.TYPE_DIRECTORY:
case FileListingService.TYPE_DIRECTORY_LINK:
return mFolderImage;
}
}
// default case return a different image.
return mOtherImage;
}
return null;
|
public java.lang.String | getColumnText(java.lang.Object element, int columnIndex)
if (element instanceof FileEntry) {
FileEntry entry = (FileEntry)element;
switch (columnIndex) {
case 0:
return entry.getName();
case 1:
return entry.getSize();
case 2:
return entry.getDate();
case 3:
return entry.getTime();
case 4:
return entry.getPermissions();
case 5:
return entry.getInfo();
}
}
return null;
|
public org.eclipse.swt.graphics.Image | getImage(java.lang.Object element)
return null;
|
public java.lang.String | getText(java.lang.Object element)
return null;
|
public boolean | isLabelProperty(java.lang.Object element, java.lang.String property)
return false;
|
public void | removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
// we don't need listeners
|