public class DefinitionMetaLabelProvider extends DefinitionLabelProvider
DefinitionLabelProvider
to support an image associated
with meta dataConstructor and Description |
---|
DefinitionMetaLabelProvider()
Create a label provider that will use short names for
EntityDefinition s. |
DefinitionMetaLabelProvider(boolean longNames)
Create a label provider for
Definition s and
EntityDefinition . |
DefinitionMetaLabelProvider(boolean longNames,
boolean suppressMandatory)
Create a label provider for
Definition s and
EntityDefinition , which supports Images for Meta Data |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
org.eclipse.swt.graphics.Image |
getImage(Object element)
Returns an adjusted image depending on the type of the object passed in.
|
String |
getText(Object element) |
addListener, fireLabelProviderChanged, isLabelProperty, removeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public DefinitionMetaLabelProvider(boolean longNames, boolean suppressMandatory)
Definition
s and
EntityDefinition
, which supports Images for Meta DatalongNames
- if for EntityDefinition
s long names shall be
usedsuppressMandatory
- if the mandatory overlay for properties shall be
suppressed (defaults to false
)public DefinitionMetaLabelProvider(boolean longNames)
Definition
s and
EntityDefinition
.longNames
- if for EntityDefinition
s long names shall be
usedpublic DefinitionMetaLabelProvider()
EntityDefinition
s.public String getText(Object element)
getText
in interface org.eclipse.jface.viewers.ILabelProvider
getText
in class DefinitionLabelProvider
LabelProvider.getText(Object)
public org.eclipse.swt.graphics.Image getImage(Object element)
getImage
in interface org.eclipse.jface.viewers.ILabelProvider
getImage
in class DefinitionLabelProvider
public void dispose()
dispose
in interface org.eclipse.jface.viewers.IBaseLabelProvider
dispose
in class DefinitionLabelProvider
DefinitionLabelProvider.dispose()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a