org.eclipse.gmf.runtime.lite.edit.parts.labels
Class AbstractLabelTextDisplayer

java.lang.Object
  extended by org.eclipse.gmf.runtime.lite.edit.parts.labels.AbstractLabelTextDisplayer
All Implemented Interfaces:
ILabelTextDisplayer
Direct Known Subclasses:
AbstractFeatureBasedLabelTextDisplayer, CompositeLabelTextDisplayer, ItemProviderLabelTextDisplayer

public abstract class AbstractLabelTextDisplayer
extends Object
implements ILabelTextDisplayer

Default implementation of ILabelTextDisplayer.


Constructor Summary
AbstractLabelTextDisplayer()
           
 
Method Summary
 org.eclipse.emf.common.command.Command getApplyCommand(org.eclipse.emf.ecore.EObject source, String newValue)
          By default, labels are not editable.
 String getEditText(org.eclipse.emf.ecore.EObject source)
          By default, the edit text is the same as the display text.
 org.eclipse.jface.viewers.ICellEditorValidator getValidator()
          By default, no validation is performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmf.runtime.lite.edit.parts.labels.ILabelTextDisplayer
getDisplayText, isAffectingEvent
 

Constructor Detail

AbstractLabelTextDisplayer

public AbstractLabelTextDisplayer()
Method Detail

getApplyCommand

public org.eclipse.emf.common.command.Command getApplyCommand(org.eclipse.emf.ecore.EObject source,
                                                              String newValue)
By default, labels are not editable. Clients may reimplement.

Specified by:
getApplyCommand in interface ILabelTextDisplayer

getEditText

public String getEditText(org.eclipse.emf.ecore.EObject source)
By default, the edit text is the same as the display text. Clients may reimplement.

Specified by:
getEditText in interface ILabelTextDisplayer

getValidator

public org.eclipse.jface.viewers.ICellEditorValidator getValidator()
By default, no validation is performed. Clients may reimplement.

Specified by:
getValidator in interface ILabelTextDisplayer


Copyright © 2012. All Rights Reserved.