|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.LabelProvider
org.eclipse.ui.dialogs.FileEditorMappingLabelProvider
public class 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.
ILabelProvider
Field Summary | |
---|---|
static FileEditorMappingLabelProvider |
INSTANCE
Singleton instance accessor. |
Method Summary | |
---|---|
void |
dispose()
The LabelProvider implementation of this
IBaseLabelProvider method does nothing. |
Image |
getColumnImage(java.lang.Object element,
int row)
The ResourceTypeEditorMappingLabelProvider implementation of this
ITableLabelProvider method creates and returns an new image. |
java.lang.String |
getColumnText(java.lang.Object element,
int row)
Returns the label text for the given column of the given element. |
Image |
getImage(java.lang.Object element)
The ResourceTypeEditorMappingLabelProvider implementation of this
ILabelProvider method creates and returns an new image. |
java.lang.String |
getText(java.lang.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 org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
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()
LabelProvider
LabelProvider
implementation of this
IBaseLabelProvider
method does nothing. Subclasses may extend.
dispose
in interface IBaseLabelProvider
dispose
in class LabelProvider
public Image getColumnImage(java.lang.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 appears
null
if there is no image for the
given object at columnIndexpublic java.lang.String getColumnText(java.lang.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 appears
null
if there is no text for the
given object at columnIndexpublic Image getImage(java.lang.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 there is no image for the given objectpublic java.lang.String getText(java.lang.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 there is no text label for the given object
|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.