public abstract class DirectEditManagerEx
extends org.eclipse.gef.tools.DirectEditManager
| Modifier and Type | Field and Description |
|---|---|
protected static org.eclipse.draw2d.Border |
BORDER_FRAME |
| Constructor and Description |
|---|
DirectEditManagerEx(org.eclipse.gef.GraphicalEditPart source,
java.lang.Class editorType,
org.eclipse.gef.tools.CellEditorLocator locator)
Constructs a new DirectEditManager for the given source edit part.
|
DirectEditManagerEx(org.eclipse.gef.GraphicalEditPart source,
java.lang.Class editorType,
org.eclipse.gef.tools.CellEditorLocator locator,
java.lang.Object feature)
Constructs a new DirectEditManager for the given source edit part.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
bringDown()
Cleanup is done here.
|
protected void |
commit()
Commits the current value of the cell editor by getting a
Command
from the source edit part and executing it via the CommandStack. |
protected CellEditor |
createCellEditorOn(Composite composite)
Creates the cell editor on the given composite.
|
protected org.eclipse.gef.requests.DirectEditRequest |
createDirectEditRequest()
Creates and returns the DirectEditRequest.
|
protected void |
eraseFeedback()
Asks the source edit part to erase source feedback.
|
protected CellEditor |
getCellEditor()
Returns the cell editor.
|
protected org.eclipse.draw2d.IFigure |
getCellEditorFrame() |
protected java.lang.Object |
getDirectEditFeature() |
protected org.eclipse.gef.requests.DirectEditRequest |
getDirectEditRequest()
Returns the direct edit request, creating it if needed.
|
protected org.eclipse.gef.GraphicalEditPart |
getEditPart()
Returns the source edit part.
|
protected org.eclipse.gef.tools.CellEditorLocator |
getLocator() |
protected void |
handleValueChanged() |
protected void |
hookListeners() |
protected abstract void |
initCellEditor()
Initializes the cell editor.
|
protected boolean |
isDirty()
Returns
true if the cell editor's value has been changed. |
protected void |
setCellEditor(CellEditor editor)
Sets the cell editor to the given editor.
|
protected void |
setDirty(boolean value)
Sets the dirty property.
|
protected void |
setEditPart(org.eclipse.gef.GraphicalEditPart source)
Sets the source edit part.
|
void |
setLocator(org.eclipse.gef.tools.CellEditorLocator locator)
Sets the CellEditorLocator used to place the cell editor in the correct
location.
|
void |
show()
Shows the cell editor when direct edit is started.
|
void |
showFeedback()
Asks the source edit part to show source feedback.
|
protected void |
unhookListeners()
Unhooks listeners.
|
public DirectEditManagerEx(org.eclipse.gef.GraphicalEditPart source,
java.lang.Class editorType,
org.eclipse.gef.tools.CellEditorLocator locator)
source - the source edit parteditorType - the cell editor typelocator - the locatorpublic DirectEditManagerEx(org.eclipse.gef.GraphicalEditPart source,
java.lang.Class editorType,
org.eclipse.gef.tools.CellEditorLocator locator,
java.lang.Object feature)
source - the source edit parteditorType - the cell editor typelocator - the locatorfeature - If the EditPart supports direct editing of multiple features,
this parameter can be used to discriminate among them.protected void bringDown()
null, it will be
deativated, disposed, and set to null.bringDown in class org.eclipse.gef.tools.DirectEditManagerprotected void commit()
Command
from the source edit part and executing it via the CommandStack.
Finally, bringDown() is called to perform and necessary cleanup.commit in class org.eclipse.gef.tools.DirectEditManagerprotected CellEditor createCellEditorOn(Composite composite)
createCellEditorOn in class org.eclipse.gef.tools.DirectEditManagercomposite - the composite to create the cell editor onprotected org.eclipse.gef.requests.DirectEditRequest createDirectEditRequest()
createDirectEditRequest in class org.eclipse.gef.tools.DirectEditManagerprotected void eraseFeedback()
eraseFeedback in class org.eclipse.gef.tools.DirectEditManagerprotected CellEditor getCellEditor()
getCellEditor in class org.eclipse.gef.tools.DirectEditManagerprotected org.eclipse.draw2d.IFigure getCellEditorFrame()
getCellEditorFrame in class org.eclipse.gef.tools.DirectEditManagerprotected java.lang.Object getDirectEditFeature()
getDirectEditFeature in class org.eclipse.gef.tools.DirectEditManagerObject that can be used if the EditPart supports
direct editing of multiple features, this parameter can be used
to discriminate among them.protected org.eclipse.gef.requests.DirectEditRequest getDirectEditRequest()
getDirectEditRequest in class org.eclipse.gef.tools.DirectEditManagerprotected org.eclipse.gef.GraphicalEditPart getEditPart()
getEditPart in class org.eclipse.gef.tools.DirectEditManagerprotected org.eclipse.gef.tools.CellEditorLocator getLocator()
getLocator in class org.eclipse.gef.tools.DirectEditManagerprotected void handleValueChanged()
handleValueChanged in class org.eclipse.gef.tools.DirectEditManagerprotected void hookListeners()
hookListeners in class org.eclipse.gef.tools.DirectEditManagerprotected abstract void initCellEditor()
VerifyListeners, if needed.initCellEditor in class org.eclipse.gef.tools.DirectEditManagerprotected boolean isDirty()
true if the cell editor's value has been changed.isDirty in class org.eclipse.gef.tools.DirectEditManagertrue if the cell editor is dirtyprotected void setCellEditor(CellEditor editor)
setCellEditor in class org.eclipse.gef.tools.DirectEditManagereditor - the cell editorprotected void setDirty(boolean value)
setDirty in class org.eclipse.gef.tools.DirectEditManagervalue - the dirty propertyprotected void setEditPart(org.eclipse.gef.GraphicalEditPart source)
setEditPart in class org.eclipse.gef.tools.DirectEditManagersource - the source edit partpublic void setLocator(org.eclipse.gef.tools.CellEditorLocator locator)
setLocator in class org.eclipse.gef.tools.DirectEditManagerlocator - the locatorpublic void show()
initCellEditor(), CellEditor.activate(), and
showFeedback().show in class org.eclipse.gef.tools.DirectEditManagerpublic void showFeedback()
showFeedback in class org.eclipse.gef.tools.DirectEditManagerprotected void unhookListeners()
bringDown().unhookListeners in class org.eclipse.gef.tools.DirectEditManager