Package org.eclipse.ui.model
Class WorkbenchPartLabelProvider
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.BaseLabelProvider
org.eclipse.jface.viewers.LabelProvider
org.eclipse.ui.model.WorkbenchPartLabelProvider
- All Implemented Interfaces:
- IBaseLabelProvider,- ILabelProvider,- ITableLabelProvider
A table label provider implementation for showing workbench views and editors
 (objects of type 
IWorkbenchPart) in tree- and table-structured
 viewers.
 Clients may instantiate this class. It is not intended to be subclassed.
- Since:
- 3.0
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new label provider for workbench parts.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()TheBaseLabelProviderimplementation of thisIBaseLabelProvidermethod clears its internal listener list.getColumnImage(Object element, int columnIndex) Returns the label image for the given column of the given element.getColumnText(Object element, int columnIndex) Returns the label text for the given column of the given element.TheLabelProviderimplementation of thisILabelProvidermethod returnsnull.TheLabelProviderimplementation of thisILabelProvidermethod returns the element'stoStringstring.Methods inherited from class org.eclipse.jface.viewers.LabelProvidercreateImageProvider, createTextImageProvider, createTextProviderMethods inherited from class org.eclipse.jface.viewers.BaseLabelProvideraddListener, fireLabelProviderChanged, isLabelProperty, removeListenerMethods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvideraddListener, isLabelProperty, removeListener
- 
Constructor Details- 
WorkbenchPartLabelProviderpublic WorkbenchPartLabelProvider()Creates a new label provider for workbench parts.
 
- 
- 
Method Details- 
getImageDescription copied from class:LabelProviderTheLabelProviderimplementation of thisILabelProvidermethod returnsnull. Subclasses may override.- Specified by:
- getImagein interface- ILabelProvider
- Overrides:
- getImagein class- LabelProvider
- Parameters:
- element- the element for which to provide the label image
- Returns:
- the image used to label the element, or nullif there is no image for the given object
 
- 
getTextDescription copied from class:LabelProviderTheLabelProviderimplementation of thisILabelProvidermethod returns the element'stoStringstring. Subclasses may override.- Specified by:
- getTextin interface- ILabelProvider
- Overrides:
- getTextin class- LabelProvider
- Parameters:
- element- the element for which to provide the label text
- Returns:
- the text string used to label the element, or nullif there is no text label for the given object
 
- 
getColumnImageDescription copied from interface:ITableLabelProviderReturns the label image for the given column of the given element.- Specified by:
- getColumnImagein interface- ITableLabelProvider
- Parameters:
- element- the object representing the entire row, or- nullindicating that no input object is set in the viewer
- columnIndex- the zero-based index of the column in which the label appears
- Returns:
- Image or nullif there is no image for the given object at columnIndex
- See Also:
 
- 
getColumnTextDescription copied from interface:ITableLabelProviderReturns the label text for the given column of the given element.- Specified by:
- getColumnTextin interface- ITableLabelProvider
- Parameters:
- element- the object representing the entire row, or- nullindicating that no input object is set in the viewer
- columnIndex- the zero-based index of the column in which the label appears
- Returns:
- String or or nullif there is no text for the given object at columnIndex
- See Also:
 
- 
disposepublic void dispose()Description copied from class:BaseLabelProviderTheBaseLabelProviderimplementation of thisIBaseLabelProvidermethod clears its internal listener list. Subclasses may extend but should call the super implementation.- Specified by:
- disposein interface- IBaseLabelProvider
- Overrides:
- disposein class- BaseLabelProvider
 
 
-