Class 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  
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider

        addListener, dispose, isLabelProperty, removeListener
    • 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
    • Constructor Detail

      • ViewTreeLabelProvider

        public ViewTreeLabelProvider()
    • Method Detail

      • 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
      • 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
      • getColoredDiagramIcon

        protected org.eclipse.swt.graphics.Image getColoredDiagramIcon​(java.lang.String color)
      • clearIconCache

        public void clearIconCache()