| java.lang.Object org.eclipse.ui.part.CellEditorActionHandler
CellEditorActionHandler | public class CellEditorActionHandler (Code) | | 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);
|
Constructor Summary | |
public | CellEditorActionHandler(IActionBars actionBar) Creates a CellEditor action handler
for the global Cut, Copy, Paste, Delete, Select All,
Find, Undo, and Redo of the action bar. |
Method Summary | |
public void | addCellEditor(CellEditor editor) Adds a CellEditor to the handler so that the
Cut, Copy, Paste, Delete, Select All, Find, Undo, and Redo
actions are redirected to it when active. | public void | dispose() | public void | removeCellEditor(CellEditor editor) Removes a CellEditor from the handler
so that the Cut, Copy, Paste, Delete, Select All, Find
Undo, and Redo actions are no longer redirected to it. | public void | setCopyAction(IAction action) Sets the default IAction handler for the Copy
action. | public void | setCutAction(IAction action) Sets the default IAction handler for the Cut
action. | public void | setDeleteAction(IAction action) Sets the default IAction handler for the Delete
action. | public void | setFindAction(IAction action) Sets the default IAction handler for the Find
action. | public void | setPasteAction(IAction action) Sets the default IAction handler for the Paste
action. | public void | setRedoAction(IAction action) Sets the default IAction handler for the Redo
action. | public void | setSelectAllAction(IAction action) Sets the default IAction handler for the Select All
action. | public void | setUndoAction(IAction action) Sets the default IAction handler for the Undo
action. |
CellEditorActionHandler | public CellEditorActionHandler(IActionBars actionBar)(Code) | | Creates a CellEditor 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 globalaction handlers. |
addCellEditor | public void addCellEditor(CellEditor editor)(Code) | | Adds a CellEditor 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 - the CellEditor |
dispose | public void dispose()(Code) | | Disposes of this action handler
|
removeCellEditor | public void removeCellEditor(CellEditor editor)(Code) | | Removes a CellEditor 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 - the CellEditor |
setCopyAction | public void setCopyAction(IAction action)(Code) | | Sets the default IAction handler for the Copy
action. This IAction is run only if no active
cell editor control.
Parameters: action - the IAction to run for theCopy action, or null if not interested. |
setCutAction | public void setCutAction(IAction action)(Code) | | Sets the default IAction handler for the Cut
action. This IAction is run only if no active
cell editor control.
Parameters: action - the IAction to run for theCut action, or null if not interested. |
setDeleteAction | public void setDeleteAction(IAction action)(Code) | | Sets the default IAction handler for the Delete
action. This IAction is run only if no active
cell editor control.
Parameters: action - the IAction to run for theDelete action, or null if not interested. |
setFindAction | public void setFindAction(IAction action)(Code) | | Sets the default IAction handler for the Find
action. This IAction is run only if no active
cell editor control.
Parameters: action - the IAction to run for theFind action, or null if not interested. |
setPasteAction | public void setPasteAction(IAction action)(Code) | | Sets the default IAction handler for the Paste
action. This IAction is run only if no active
cell editor control.
Parameters: action - the IAction to run for thePaste action, or null if not interested. |
setRedoAction | public void setRedoAction(IAction action)(Code) | | Sets the default IAction handler for the Redo
action. This IAction is run only if no active
cell editor control.
Parameters: action - the IAction to run for theRedo action, or null if not interested. |
setSelectAllAction | public void setSelectAllAction(IAction action)(Code) | | Sets the default IAction handler for the Select All
action. This IAction is run only if no active
cell editor control.
Parameters: action - the IAction to run for theSelect All action, or null if not interested. |
setUndoAction | public void setUndoAction(IAction action)(Code) | | Sets the default IAction handler for the Undo
action. This IAction is run only if no active
cell editor control.
Parameters: action - the IAction to run for theUndo action, or null if not interested. |
|
|