Package org.eclipse.ui.part
Class CellEditorActionHandler
java.lang.Object
org.eclipse.ui.part.CellEditorActionHandler
Handles the redirection of the global actions Cut, Copy, Paste, Delete,
Select All, Find, Undo and Redo to either the current inline cell editor or
the part's supplied action handler.
This class may be instantiated; it is not intended to be subclassed.
Example usage:
actionHandler = new CellEditorActionHandler(this.getViewSite().getActionBars()); actionHandler.addCellEditor(textCellEditor1); actionHandler.addCellEditor(textCellEditor2); actionHandler.setSelectAllAction(selectAllAction);
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
ConstructorDescriptionCellEditorActionHandler
(IActionBars actionBar) Creates aCellEditor
action handler for the global Cut, Copy, Paste, Delete, Select All, Find, Undo, and Redo of the action bar. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCellEditor
(CellEditor editor) Adds aCellEditor
to the handler so that the Cut, Copy, Paste, Delete, Select All, Find, Undo, and Redo actions are redirected to it when active.void
dispose()
Disposes of this action handlervoid
removeCellEditor
(CellEditor editor) Removes aCellEditor
from the handler so that the Cut, Copy, Paste, Delete, Select All, Find Undo, and Redo actions are no longer redirected to it.void
setCopyAction
(IAction action) Sets the defaultIAction
handler for the Copy action.void
setCutAction
(IAction action) Sets the defaultIAction
handler for the Cut action.void
setDeleteAction
(IAction action) Sets the defaultIAction
handler for the Delete action.void
setFindAction
(IAction action) Sets the defaultIAction
handler for the Find action.void
setPasteAction
(IAction action) Sets the defaultIAction
handler for the Paste action.void
setRedoAction
(IAction action) Sets the defaultIAction
handler for the Redo action.void
setSelectAllAction
(IAction action) Sets the defaultIAction
handler for the Select All action.void
setUndoAction
(IAction action) Sets the defaultIAction
handler for the Undo action.
-
Constructor Details
-
CellEditorActionHandler
Creates aCellEditor
action handler for the global Cut, Copy, Paste, Delete, Select All, Find, Undo, and Redo of the action bar.- Parameters:
actionBar
- the action bar to register global action handlers.
-
-
Method Details
-
addCellEditor
Adds aCellEditor
to the handler so that the Cut, Copy, Paste, Delete, Select All, Find, Undo, and Redo actions are redirected to it when active.- Parameters:
editor
- theCellEditor
-
dispose
public void dispose()Disposes of this action handler -
removeCellEditor
Removes aCellEditor
from the handler so that the Cut, Copy, Paste, Delete, Select All, Find Undo, and Redo actions are no longer redirected to it.- Parameters:
editor
- theCellEditor
-
setCopyAction
Sets the defaultIAction
handler for the Copy action. ThisIAction
is run only if no active cell editor control.- Parameters:
action
- theIAction
to run for the Copy action, ornull
if not interested.
-
setCutAction
Sets the defaultIAction
handler for the Cut action. ThisIAction
is run only if no active cell editor control.- Parameters:
action
- theIAction
to run for the Cut action, ornull
if not interested.
-
setDeleteAction
Sets the defaultIAction
handler for the Delete action. ThisIAction
is run only if no active cell editor control.- Parameters:
action
- theIAction
to run for the Delete action, ornull
if not interested.
-
setFindAction
Sets the defaultIAction
handler for the Find action. ThisIAction
is run only if no active cell editor control.- Parameters:
action
- theIAction
to run for the Find action, ornull
if not interested.
-
setPasteAction
Sets the defaultIAction
handler for the Paste action. ThisIAction
is run only if no active cell editor control.- Parameters:
action
- theIAction
to run for the Paste action, ornull
if not interested.
-
setRedoAction
Sets the defaultIAction
handler for the Redo action. ThisIAction
is run only if no active cell editor control.- Parameters:
action
- theIAction
to run for the Redo action, ornull
if not interested.
-
setSelectAllAction
Sets the defaultIAction
handler for the Select All action. ThisIAction
is run only if no active cell editor control.- Parameters:
action
- theIAction
to run for the Select All action, ornull
if not interested.
-
setUndoAction
Sets the defaultIAction
handler for the Undo action. ThisIAction
is run only if no active cell editor control.- Parameters:
action
- theIAction
to run for the Undo action, ornull
if not interested.
-