java.lang.Objectorg.eclipse.jface.viewers.LabelProvider
com.ibm.jdg2e.view.files.ui.FileLabelProvider
Label provider implementation for IFile resources. The
multi-column display includes support for font and color tagging to
identify selected rows of interest.
| Constructor Summary | |
|---|---|
FileLabelProvider(FileView fileView)
Constructor accepts FileView reference for use in
customizing the content displayed in the viewer. |
|
| Method Summary | |
|---|---|
void |
dispose()
Clear fonts that were created and color if used. |
org.eclipse.swt.graphics.Color |
getBackground(java.lang.Object element)
(non-Javadoc) |
org.eclipse.swt.graphics.Image |
getColumnImage(java.lang.Object obj,
int index)
Determines which columns get an image (name and path). |
java.lang.String |
getColumnText(java.lang.Object obj,
int index)
Return column text required for this viewer. |
org.eclipse.swt.graphics.Font |
getFont(java.lang.Object element)
Returns a Font that reflects the modification
display requested and the synchronization state of the
IResource with respect to the workspace. |
org.eclipse.swt.graphics.Color |
getForeground(java.lang.Object element)
Returns Color that should be used for a given element. |
(package private) org.eclipse.swt.graphics.RGB |
getModificationRGB()
Obtains the RGB value for a color theme defined as
part of this plug-in. |
| Methods inherited from class org.eclipse.jface.viewers.LabelProvider |
|---|
addListener, fireLabelProviderChanged, getImage, getText, isLabelProperty, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider |
|---|
addListener, isLabelProperty, removeListener |
| Constructor Detail |
public FileLabelProvider(FileView fileView)
FileView reference for use in
customizing the content displayed in the viewer.
The label viewer and its local font information that is used for viewer elements that meet certain criteria is also initialized.
fileView - | Method Detail |
public void dispose()
dispose in interface org.eclipse.jface.viewers.IBaseLabelProviderIBaseLabelProvider.dispose()public org.eclipse.swt.graphics.Color getBackground(java.lang.Object element)
getBackground in interface org.eclipse.jface.viewers.IColorProviderIColorProvider.getBackground(java.lang.Object)
public org.eclipse.swt.graphics.Image getColumnImage(java.lang.Object obj,
int index)
getColumnImage in interface org.eclipse.jface.viewers.ITableLabelProviderITableLabelProvider.getColumnImage(java.lang.Object, int)
public java.lang.String getColumnText(java.lang.Object obj,
int index)
getColumnText in interface org.eclipse.jface.viewers.ITableLabelProviderITableLabelProvider.getColumnText(java.lang.Object, int)public org.eclipse.swt.graphics.Font getFont(java.lang.Object element)
Font that reflects the modification
display requested and the synchronization state of the
IResource with respect to the workspace.
getFont in interface org.eclipse.jface.viewers.IFontProviderIFontProvider.getFont(java.lang.Object)public org.eclipse.swt.graphics.Color getForeground(java.lang.Object element)
Color that should be used for a given element.
This implementation returns a user defined Color when
the element involved is in the modification range.
getForeground in interface org.eclipse.jface.viewers.IColorProviderIColorProvider.getForeground(java.lang.Object)org.eclipse.swt.graphics.RGB getModificationRGB()
RGB value for a color theme defined as
part of this plug-in. Value obtained from the
IThemeManager.