org.eclipse.xtext.ui.label
Class DefaultEObjectLabelProvider

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.viewers.BaseLabelProvider
          extended by org.eclipse.jface.viewers.LabelProvider
              extended by org.eclipse.xtext.ui.label.AbstractLabelProvider
                  extended by org.eclipse.xtext.ui.label.DeclarativeLabelProvider
                      extended by org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider
All Implemented Interfaces:
org.eclipse.emf.edit.provider.IItemLabelProvider, org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider, org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.ILabelProvider
Direct Known Subclasses:
CodetemplatesLabelProvider, PureXbaseLabelProvider, SingleCodetemplateLabelProvider, SingleTemplateLabelProvider, SingleTemplatesLabelProvider, TemplatesLabelProvider, XbaseLabelProvider, XbaseWithAnnotationsLabelProvider, Xtend2LabelProvider, XtextLabelProvider

public class DefaultEObjectLabelProvider
extends DeclarativeLabelProvider

Author:
Jan Koehnlein - Initial contribution and API

Constructor Summary
DefaultEObjectLabelProvider()
           
DefaultEObjectLabelProvider(org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider delegate)
           
 
Method Summary
protected  java.lang.Object doGetText(java.lang.Object element)
          Expected to be overridden by clients.
protected  org.eclipse.emf.ecore.EStructuralFeature getLabelFeature(org.eclipse.emf.ecore.EClass eClass)
           
 
Methods inherited from class org.eclipse.xtext.ui.label.DeclarativeLabelProvider
doGetImage, handleImageError, handleTextError, image, image, text, text
 
Methods inherited from class org.eclipse.xtext.ui.label.AbstractLabelProvider
convertToImage, convertToString, convertToStyledString, getDefaultImage, getDefaultStyledText, getDefaultText, getImage, getStyledText, getText, setImageHelper
 
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
 

Constructor Detail

DefaultEObjectLabelProvider

public DefaultEObjectLabelProvider()

DefaultEObjectLabelProvider

@Inject
public DefaultEObjectLabelProvider(org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider delegate)
Method Detail

doGetText

protected java.lang.Object doGetText(java.lang.Object element)
Description copied from class: AbstractLabelProvider
Expected to be overridden by clients.

Overrides:
doGetText in class DeclarativeLabelProvider
Returns:
a StyledString or a a String.

getLabelFeature

protected org.eclipse.emf.ecore.EStructuralFeature getLabelFeature(org.eclipse.emf.ecore.EClass eClass)