org.eclipse.gmf.runtime.lite.edit.parts.labels
Class AbstractLabelTextDisplayer
java.lang.Object
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
.
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 |
AbstractLabelTextDisplayer
public AbstractLabelTextDisplayer()
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.