[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
setGlobalActionHandler and undo/redo

Hi

When i use the following code :

IActionBars bars = getViewSite().getActionBars();

bars.setGlobalActionHandler(IWorkbenchActionConstants.UNDO, undoAction);
bars.setGlobalActionHandler(IWorkbenchActionConstants.REDO, redoAction);

the label of the undo and the redo menu disapears (the icons remain
visible).

This occurs only on startup of my plugin when the view wich contains the
code is activated. When i unselect and reselect the view the label is
visible again.

I have not this problem with CUT action.
(bars.setGlobalActionHandler(IWorkbenchActionConstants.CUT, cutAction);)

Is it a bug or an error in my code ?

Nicolas.