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

java.lang.Object
  extended by org.eclipse.gmf.runtime.lite.edit.parts.labels.AbstractLabelTextDisplayer
      extended by org.eclipse.gmf.runtime.lite.edit.parts.labels.CompositeLabelTextDisplayer
All Implemented Interfaces:
ILabelTextDisplayer

public class CompositeLabelTextDisplayer
extends AbstractLabelTextDisplayer

A label text displayer composed of two independent displayers, one for read-only operations (displaying labels) and one for write-only operations (parsing the input and creating the associated command).


Constructor Summary
CompositeLabelTextDisplayer(ILabelTextDisplayer reader, ILabelTextDisplayer writer)
           
 
Method Summary
 org.eclipse.emf.common.command.Command getApplyCommand(org.eclipse.emf.ecore.EObject source, String newValue)
          By default, labels are not editable.
 String getDisplayText(org.eclipse.emf.ecore.EObject source)
          Returns the text a label for the given source object should display.
 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.
 boolean isAffectingEvent(org.eclipse.emf.common.notify.Notification notification)
          Returns whether the given notification may cause a source to require update of the label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeLabelTextDisplayer

public CompositeLabelTextDisplayer(ILabelTextDisplayer reader,
                                   ILabelTextDisplayer writer)
Method Detail

getApplyCommand

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

Specified by:
getApplyCommand in interface ILabelTextDisplayer
Overrides:
getApplyCommand in class AbstractLabelTextDisplayer

getEditText

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

Specified by:
getEditText in interface ILabelTextDisplayer
Overrides:
getEditText in class AbstractLabelTextDisplayer

getValidator

public org.eclipse.jface.viewers.ICellEditorValidator getValidator()
Description copied from class: AbstractLabelTextDisplayer
By default, no validation is performed. Clients may reimplement.

Specified by:
getValidator in interface ILabelTextDisplayer
Overrides:
getValidator in class AbstractLabelTextDisplayer

getDisplayText

public String getDisplayText(org.eclipse.emf.ecore.EObject source)
Description copied from interface: ILabelTextDisplayer
Returns the text a label for the given source object should display.


isAffectingEvent

public boolean isAffectingEvent(org.eclipse.emf.common.notify.Notification notification)
Description copied from interface: ILabelTextDisplayer
Returns whether the given notification may cause a source to require update of the label.



Copyright © 2012. All Rights Reserved.