public abstract class RichTextDirectEditManager
extends org.eclipse.gef.tools.DirectEditManager
ITextControlEditPart
. It
should be a rich text ITextControlEditPart.
The class pops up a rich text cell editor that allows user to edit rich text
content.Modifier and Type | Class and Description |
---|---|
static class |
RichTextDirectEditManager.RichTextEditorLocator
Locates and places rich text cell editor at proper location.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
alreadyOpen |
Constructor and Description |
---|
RichTextDirectEditManager(ITextControlEditPart source,
java.lang.Class<?> editorType,
org.eclipse.gef.tools.CellEditorLocator locator)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
bringDown() |
protected void |
commit() |
protected abstract java.lang.String |
getEditText()
Gets rich text content.
|
protected double |
getZoomLevel()
Gets zoom level.
|
protected void |
initCellEditor() |
void |
show() |
void |
showFeedback() |
createCellEditorOn, createDirectEditRequest, eraseFeedback, getCellEditor, getCellEditorFrame, getDirectEditFeature, getDirectEditRequest, getEditPart, getLocator, handleValueChanged, hookListeners, isDirty, setCellEditor, setDirty, setEditPart, setLocator, unhookListeners
public RichTextDirectEditManager(ITextControlEditPart source, java.lang.Class<?> editorType, org.eclipse.gef.tools.CellEditorLocator locator)
source
- ITextControlEditPart that calls this DirectEditManagereditorType
- RichTextCellEditor classlocator
- CellEditorLocator used to locate RichTextCellEditorpublic void showFeedback()
showFeedback
in class org.eclipse.gef.tools.DirectEditManager
protected void initCellEditor()
initCellEditor
in class org.eclipse.gef.tools.DirectEditManager
protected double getZoomLevel()
protected abstract java.lang.String getEditText()
protected void commit()
commit
in class org.eclipse.gef.tools.DirectEditManager
public void show()
show
in class org.eclipse.gef.tools.DirectEditManager
protected void bringDown()
bringDown
in class org.eclipse.gef.tools.DirectEditManager