Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.swt.graphics.Color getBackground​(Object element)  
      org.eclipse.swt.graphics.Font getFont​(Object element)  
      org.eclipse.swt.graphics.Color getForeground​(Object element)  
      org.eclipse.swt.graphics.Image getImage​(Object element)  
      String getText​(Object element)  
      protected 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
      • Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider

        addListener, dispose, isLabelProperty, removeListener
    • Field Detail

      • bold

        protected org.eclipse.swt.graphics.Font bold
      • italic

        protected org.eclipse.swt.graphics.Font italic
    • Method Detail

      • getImage

        public org.eclipse.swt.graphics.Image getImage​(Object element)
        Specified by:
        getImage in interface org.eclipse.jface.viewers.ILabelProvider
        Overrides:
        getImage in class org.eclipse.jface.viewers.LabelProvider
      • getText

        public String getText​(Object element)
        Specified by:
        getText in interface org.eclipse.jface.viewers.ILabelProvider
        Overrides:
        getText in class org.eclipse.jface.viewers.LabelProvider
      • getTypeName

        protected String getTypeName​(org.eclipse.emf.ecore.EClassifier classifier)
      • getBackground

        public org.eclipse.swt.graphics.Color getBackground​(Object element)
        Specified by:
        getBackground in interface org.eclipse.jface.viewers.IColorProvider
      • getForeground

        public org.eclipse.swt.graphics.Color getForeground​(Object element)
        Specified by:
        getForeground in interface org.eclipse.jface.viewers.IColorProvider
      • getFont

        public org.eclipse.swt.graphics.Font getFont​(Object element)
        Specified by:
        getFont in interface org.eclipse.jface.viewers.IFontProvider