Class EcoreLabelProvider
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.jface.viewers.BaseLabelProvider
-
- org.eclipse.jface.viewers.LabelProvider
-
- org.eclipse.epsilon.dt.epackageregistryexplorer.EcoreLabelProvider
-
- All Implemented Interfaces:
org.eclipse.jface.viewers.IBaseLabelProvider
,org.eclipse.jface.viewers.IColorProvider
,org.eclipse.jface.viewers.IFontProvider
,org.eclipse.jface.viewers.ILabelProvider
public class EcoreLabelProvider extends org.eclipse.jface.viewers.LabelProvider implements org.eclipse.jface.viewers.IFontProvider, org.eclipse.jface.viewers.IColorProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.graphics.Font
bold
protected org.eclipse.swt.graphics.Font
italic
protected PackageRegistryExplorerView
view
-
Constructor Summary
Constructors Constructor Description EcoreLabelProvider(PackageRegistryExplorerView view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.Color
getBackground(java.lang.Object element)
org.eclipse.swt.graphics.Font
getFont(java.lang.Object element)
org.eclipse.swt.graphics.Color
getForeground(java.lang.Object element)
org.eclipse.swt.graphics.Image
getImage(java.lang.Object element)
java.lang.String
getText(java.lang.Object element)
protected java.lang.String
getTypeName(org.eclipse.emf.ecore.EClassifier classifier)
-
Methods inherited from class org.eclipse.jface.viewers.LabelProvider
createImageProvider, createTextImageProvider, createTextProvider
-
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListener
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
-
-
-
Field Detail
-
view
protected PackageRegistryExplorerView view
-
bold
protected org.eclipse.swt.graphics.Font bold
-
italic
protected org.eclipse.swt.graphics.Font italic
-
-
Constructor Detail
-
EcoreLabelProvider
public EcoreLabelProvider(PackageRegistryExplorerView view)
-
-
Method Detail
-
getImage
public org.eclipse.swt.graphics.Image getImage(java.lang.Object element)
- Specified by:
getImage
in interfaceorg.eclipse.jface.viewers.ILabelProvider
- Overrides:
getImage
in classorg.eclipse.jface.viewers.LabelProvider
-
getText
public java.lang.String getText(java.lang.Object element)
- Specified by:
getText
in interfaceorg.eclipse.jface.viewers.ILabelProvider
- Overrides:
getText
in classorg.eclipse.jface.viewers.LabelProvider
-
getTypeName
protected java.lang.String getTypeName(org.eclipse.emf.ecore.EClassifier classifier)
-
getBackground
public org.eclipse.swt.graphics.Color getBackground(java.lang.Object element)
- Specified by:
getBackground
in interfaceorg.eclipse.jface.viewers.IColorProvider
-
getForeground
public org.eclipse.swt.graphics.Color getForeground(java.lang.Object element)
- Specified by:
getForeground
in interfaceorg.eclipse.jface.viewers.IColorProvider
-
getFont
public org.eclipse.swt.graphics.Font getFont(java.lang.Object element)
- Specified by:
getFont
in interfaceorg.eclipse.jface.viewers.IFontProvider
-
-