public final class PerspectiveLabelProvider extends LabelProvider implements ITableLabelProvider
IPerspectiveDescriptor) in table- and
tree-structured viewers.
Clients may instantiate this class. It is not intended to be subclassed.
| Constructor and Description |
|---|
PerspectiveLabelProvider()
Creates a new label provider for perspectives.
|
PerspectiveLabelProvider(boolean markDefault)
Creates a new label provider for perspectives.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
The
BaseLabelProvider implementation of this
IBaseLabelProvider method clears its internal listener list. |
Image |
getColumnImage(Object element,
int columnIndex)
Returns the label image for the given column of the given element.
|
String |
getColumnText(Object element,
int columnIndex)
Returns the label text for the given column of the given element.
|
Image |
getImage(Object element)
The
LabelProvider implementation of this
ILabelProvider method returns null. |
String |
getText(Object element)
The
LabelProvider implementation of this
ILabelProvider method returns the element's
toString string. |
addListener, fireLabelProviderChanged, isLabelProperty, removeListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, isLabelProperty, removeListenerpublic PerspectiveLabelProvider()
public PerspectiveLabelProvider(boolean markDefault)
markDefault - true if the default perspective is to be
visually marked, and false if the default perspective is
not treated as anything specialpublic final Image getImage(Object element)
LabelProviderLabelProvider implementation of this
ILabelProvider method returns null.
Subclasses may override.getImage in interface ILabelProvidergetImage in class LabelProviderelement - the element for which to provide the label imagenull
if there is no image for the given objectpublic final void dispose()
BaseLabelProviderBaseLabelProvider implementation of this
IBaseLabelProvider method clears its internal listener list.
Subclasses may extend but should call the super implementation.dispose in interface IBaseLabelProviderdispose in class BaseLabelProviderpublic final String getText(Object element)
LabelProviderLabelProvider implementation of this
ILabelProvider method returns the element's
toString string. Subclasses may override.getText in interface ILabelProvidergetText in class LabelProviderelement - the element for which to provide the label textnull
if there is no text label for the given objectpublic final Image getColumnImage(Object element, int columnIndex)
ITableLabelProvidergetColumnImage in interface ITableLabelProviderelement - the object representing the entire row, or
null indicating that no input object is set
in the viewercolumnIndex - the zero-based index of the column in which
the label appearsnull if there is no image for the
given object at columnIndexITableLabelProvider.getColumnImage(java.lang.Object, int)public final String getColumnText(Object element, int columnIndex)
ITableLabelProvidergetColumnText in interface ITableLabelProviderelement - the object representing the entire row, or
null indicating that no input object is set
in the viewercolumnIndex - the zero-based index of the column in which the label appearsnull if there is no text for the
given object at columnIndexITableLabelProvider.getColumnText(java.lang.Object, int)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.