public class DefinitionInstanceLabelProvider
extends org.eclipse.jface.viewers.StyledCellLabelProvider
TypeDefinitionContentProvider
. Also handles metadata of those
instances.Modifier and Type | Field and Description |
---|---|
static String |
MULTIPLE_VALUE_FORMAT
The pattern of the text for multiple values.
|
Constructor and Description |
---|
DefinitionInstanceLabelProvider(Instance instance)
Create an instance label provider for tree based on a
TypeDefinition |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
int |
getMetaDataChoice(String key)
get the specific choosen metadata value number for a certain metadata key
|
String |
getToolTipText(Object element) |
void |
selectPath(org.eclipse.jface.viewers.TreePath path,
int choice)
Select a specific path.
|
void |
update(org.eclipse.jface.viewers.ViewerCell cell) |
erase, getColumn, getViewer, initialize, isOwnerDrawEnabled, measure, paint, prepareStyleRange, setOwnerDrawEnabled, styleDecoratedString
dispose, initialize, setOwnerDrawEnabled, setUpOwnerDraw
getToolTipBackgroundColor, getToolTipDisplayDelayTime, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipShift, getToolTipStyle, getToolTipTimeDisplayed, useNativeToolTip
addListener, fireLabelProviderChanged, isLabelProperty, removeListener
public static final String MULTIPLE_VALUE_FORMAT
DefinitionInstanceTreeViewer
to determine if a cell is
"editable". Furthermore it is expected to be at the end of the cell text.public DefinitionInstanceLabelProvider(Instance instance)
TypeDefinition
instance
- the instance to usepublic void update(org.eclipse.jface.viewers.ViewerCell cell)
update
in class org.eclipse.jface.viewers.StyledCellLabelProvider
CellLabelProvider.update(ViewerCell)
public void selectPath(org.eclipse.jface.viewers.TreePath path, int choice)
path
- the path at which a choice is necessarychoice
- the made choicepublic void dispose()
dispose
in interface org.eclipse.jface.viewers.IBaseLabelProvider
dispose
in class org.eclipse.jface.viewers.StyledCellLabelProvider
BaseLabelProvider.dispose()
public String getToolTipText(Object element)
getToolTipText
in class org.eclipse.jface.viewers.CellLabelProvider
CellLabelProvider.getToolTipText(java.lang.Object)
public int getMetaDataChoice(String key)
key
- the metadata keyBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a