Package org.eclipse.epsilon.picto
Class ViewTreeLabelProvider
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.jface.viewers.BaseLabelProvider
-
- org.eclipse.jface.viewers.LabelProvider
-
- org.eclipse.epsilon.picto.ViewTreeLabelProvider
-
- All Implemented Interfaces:
org.eclipse.jface.viewers.IBaseLabelProvider
,org.eclipse.jface.viewers.ILabelProvider
public class ViewTreeLabelProvider extends org.eclipse.jface.viewers.LabelProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.graphics.Image
diagramImage
protected java.util.List<java.lang.String>
extensions
protected org.eclipse.swt.graphics.Image
folderImage
protected java.util.Map<java.lang.String,org.eclipse.swt.graphics.Image>
iconCache
-
Constructor Summary
Constructors Constructor Description ViewTreeLabelProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearIconCache()
protected org.eclipse.swt.graphics.Image
getColoredDiagramIcon(java.lang.String color)
org.eclipse.swt.graphics.Image
getImage(java.lang.Object element)
java.lang.String
getText(java.lang.Object element)
-
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
-
diagramImage
protected org.eclipse.swt.graphics.Image diagramImage
-
folderImage
protected org.eclipse.swt.graphics.Image folderImage
-
iconCache
protected java.util.Map<java.lang.String,org.eclipse.swt.graphics.Image> iconCache
-
extensions
protected java.util.List<java.lang.String> extensions
-
-
Method Detail
-
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
-
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
-
getColoredDiagramIcon
protected org.eclipse.swt.graphics.Image getColoredDiagramIcon(java.lang.String color)
-
clearIconCache
public void clearIconCache()
-
-