com.ibm.carma.ui.view
Class CarmaLabelProvider
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.LabelProvider
com.ibm.carma.ui.view.CarmaLabelProvider
- All Implemented Interfaces:
- org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.ILabelProvider
- Direct Known Subclasses:
- CarmaFieldsLabelProvider
public class CarmaLabelProvider
- extends org.eclipse.jface.viewers.LabelProvider
This is the label and font provider used for CARMA, Filterable, RepositoryManager,
Status Display, FilterContent, and CARMAResource objects.
- See Also:
CarmaImages
|
Field Summary |
static java.lang.String |
COPYRIGHT
|
|
Method Summary |
java.lang.String |
getFilterableText(Filterable element,
java.lang.String filterName)
Returns the display text for the given filterable element and filtername |
org.eclipse.swt.graphics.Image |
getImage(java.lang.Object element)
|
java.lang.String |
getText(java.lang.Object element)
|
boolean |
isLabelProperty(java.lang.Object element,
java.lang.String property)
|
| Methods inherited from class org.eclipse.jface.viewers.LabelProvider |
addListener, dispose, removeListener |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
CarmaLabelProvider
public CarmaLabelProvider()
- Creates new instance of the label provider
getText
public java.lang.String getText(java.lang.Object element)
- Specified by:
getText in interface org.eclipse.jface.viewers.ILabelProvider- Overrides:
getText in class org.eclipse.jface.viewers.LabelProvider
getFilterableText
public java.lang.String getFilterableText(Filterable element,
java.lang.String filterName)
- Returns the display text for the given filterable element and filtername
- Parameters:
element - the filterable element to calculate display text forfilterName - the current filter in use
- Returns:
- the display text for the element
getImage
public org.eclipse.swt.graphics.Image getImage(java.lang.Object element)
- Specified by:
getImage in interface org.eclipse.jface.viewers.ILabelProvider- Overrides:
getImage in class org.eclipse.jface.viewers.LabelProvider
isLabelProperty
public boolean isLabelProperty(java.lang.Object element,
java.lang.String property)
- Specified by:
isLabelProperty in interface org.eclipse.jface.viewers.IBaseLabelProvider- Overrides:
isLabelProperty in class org.eclipse.jface.viewers.LabelProvider