|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.viewers.LabelProvider | +--org.eclipse.ui.dialogs.FileEditorMappingLabelProvider
A label provider for displaying of IFileEditorMapping
objects in viewers.
This class has a singleton instance,
FileEditorMappingLabelProvider.INSTANCE
,
which can be used any place this kind of label provider is needed.
The singleton instance hangs on to images, which get freed up when
dispose
is called.
org.eclipse.ui.IResourceTypeEditorMapping
,
ILabelProvider
Field Summary | |
static FileEditorMappingLabelProvider |
INSTANCE
Singleton instance accessor. |
Method Summary | |
void |
dispose()
Disposes of this label provider. |
Image |
getColumnImage(Object element,
int row)
The ResourceTypeEditorMappingLabelProvider implementation of this
ITableLabelProvider method creates and returns an new image. |
String |
getColumnText(Object element,
int row)
Returns the label text for the given column of the given element. |
Image |
getImage(Object element)
The ResourceTypeEditorMappingLabelProvider implementation of this
ILabelProvider method creates and returns an new image. |
String |
getText(Object element)
The LabelProvider implementation of this
ILabelProvider method returns the element's toString
string. |
Methods inherited from class org.eclipse.jface.viewers.LabelProvider |
addListener, fireLabelProviderChanged, 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 |
Field Detail |
public static final FileEditorMappingLabelProvider INSTANCE
Method Detail |
public void dispose()
IBaseLabelProvider
dispose
in interface IBaseLabelProvider
dispose
in class LabelProvider
public Image getColumnImage(Object element, int row)
ResourceTypeEditorMappingLabelProvider
implementation of this
ITableLabelProvider
method creates and returns an new image. The
image is remembered internally and will be deallocated by
dispose
.
getColumnImage
in interface ITableLabelProvider
element
- the object representing the entire row, or
null
indicating that no input object is set
in the viewerrow
- the zero-based index of the column in which
the label appearspublic String getColumnText(Object element, int row)
ITableLabelProvider
getColumnText
in interface ITableLabelProvider
element
- the object representing the entire row, or
null
indicating that no input object is set
in the viewerrow
- the zero-based index of the column in which the label appearspublic Image getImage(Object element)
ResourceTypeEditorMappingLabelProvider
implementation of this
ILabelProvider
method creates and returns an new image. The image
is remembered internally and will be deallocated by dispose
.
getImage
in interface ILabelProvider
getImage
in class LabelProvider
element
- the element for which to provide the label image
null
if these is no image for the given objectpublic String getText(Object element)
LabelProvider
LabelProvider
implementation of this
ILabelProvider
method returns the element's toString
string. Subclasses may override.
getText
in interface ILabelProvider
getText
in class LabelProvider
element
- the element for which to provide the label text
null
if these is no text label for the given object
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |