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

There shouldn't be any problem specific to the undo or redo actions. I tried
this with a new view plugin and it worked fine. If you can provide specific
steps or code to reproduce this, please log a PR.

Thanks,
Chris.

"Nicolas Gillet" <nicolas.gillet@xxxxxxxxxx> wrote in message
news:ajdbr9$3uv$1@xxxxxxxxxxxxxxxx
> 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.
>