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​(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
      • 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

      • 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​(java.lang.Object element)
        Specified by:
        getImage in interface org.eclipse.jface.viewers.ILabelProvider
        Overrides:
        getImage in class org.eclipse.jface.viewers.LabelProvider
      • 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
      • 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 interface org.eclipse.jface.viewers.IColorProvider
      • getForeground

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

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