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 SummaryConstructorsConstructorDescriptionCellEditorActionHandler(IActionBars actionBar) Creates aCellEditoraction handler for the global Cut, Copy, Paste, Delete, Select All, Find, Undo, and Redo of the action bar.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddCellEditor(CellEditor editor) Adds aCellEditorto the handler so that the Cut, Copy, Paste, Delete, Select All, Find, Undo, and Redo actions are redirected to it when active.voiddispose()Disposes of this action handlervoidremoveCellEditor(CellEditor editor) Removes aCellEditorfrom the handler so that the Cut, Copy, Paste, Delete, Select All, Find Undo, and Redo actions are no longer redirected to it.voidsetCopyAction(IAction action) Sets the defaultIActionhandler for the Copy action.voidsetCutAction(IAction action) Sets the defaultIActionhandler for the Cut action.voidsetDeleteAction(IAction action) Sets the defaultIActionhandler for the Delete action.voidsetFindAction(IAction action) Sets the defaultIActionhandler for the Find action.voidsetPasteAction(IAction action) Sets the defaultIActionhandler for the Paste action.voidsetRedoAction(IAction action) Sets the defaultIActionhandler for the Redo action.voidsetSelectAllAction(IAction action) Sets the defaultIActionhandler for the Select All action.voidsetUndoAction(IAction action) Sets the defaultIActionhandler for the Undo action.
- 
Constructor Details- 
CellEditorActionHandlerCreates aCellEditoraction 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- 
addCellEditorAdds aCellEditorto the handler so that the Cut, Copy, Paste, Delete, Select All, Find, Undo, and Redo actions are redirected to it when active.- Parameters:
- editor- the- CellEditor
 
- 
disposepublic void dispose()Disposes of this action handler
- 
removeCellEditorRemoves aCellEditorfrom the handler so that the Cut, Copy, Paste, Delete, Select All, Find Undo, and Redo actions are no longer redirected to it.- Parameters:
- editor- the- CellEditor
 
- 
setCopyActionSets the defaultIActionhandler for the Copy action. ThisIActionis run only if no active cell editor control.- Parameters:
- action- the- IActionto run for the Copy action, or- nullif not interested.
 
- 
setCutActionSets the defaultIActionhandler for the Cut action. ThisIActionis run only if no active cell editor control.- Parameters:
- action- the- IActionto run for the Cut action, or- nullif not interested.
 
- 
setDeleteActionSets the defaultIActionhandler for the Delete action. ThisIActionis run only if no active cell editor control.- Parameters:
- action- the- IActionto run for the Delete action, or- nullif not interested.
 
- 
setFindActionSets the defaultIActionhandler for the Find action. ThisIActionis run only if no active cell editor control.- Parameters:
- action- the- IActionto run for the Find action, or- nullif not interested.
 
- 
setPasteActionSets the defaultIActionhandler for the Paste action. ThisIActionis run only if no active cell editor control.- Parameters:
- action- the- IActionto run for the Paste action, or- nullif not interested.
 
- 
setRedoActionSets the defaultIActionhandler for the Redo action. ThisIActionis run only if no active cell editor control.- Parameters:
- action- the- IActionto run for the Redo action, or- nullif not interested.
 
- 
setSelectAllActionSets the defaultIActionhandler for the Select All action. ThisIActionis run only if no active cell editor control.- Parameters:
- action- the- IActionto run for the Select All action, or- nullif not interested.
 
- 
setUndoActionSets the defaultIActionhandler for the Undo action. ThisIActionis run only if no active cell editor control.- Parameters:
- action- the- IActionto run for the Undo action, or- nullif not interested.
 
 
-