You can easily override Undo and Redo in a specific view (or editor) by
doing something like this:
getViewSite().getActionBars().setGlobalActionHandler(IWorkbe nchActionConstan
ts.UNDO, undoAction);
undoAction extends Action with your proprietary Undo functionality.
Good Luck,
Emil
"Thomas" <t.gros@hyperoffice.fr> skrev i meddelandet
news:bcn1n3$6pe$1@rogue.oti.com...
> Is there a mecanism allowing to [undo / redo] proprietary actions ?
(actions
> that are not based on ITextViewer viewer)
>
> i.e. i want to use a manager that could cancel any custom action i could
> trigger.
>
> How can it be implemented in jface?
>
> Thanks in advance.
>
>
But is there a global mechanism for undoing and redoing ? (for example a
mecanism that would manage the whole application window)
Or must the undo / redo mechanism in jface be specific to a particular view
?
You can easily override Undo and Redo in a specific view (or editor) by
doing something like this:
getViewSite().getActionBars().setGlobalActionHandler(IWorkbe nchActionConstan
ts.UNDO, undoAction);
undoAction extends Action with your proprietary Undo functionality.
Good Luck,
Emil
"Thomas" <t.gros@hyperoffice.fr> skrev i meddelandet
news:bcn1n3$6pe$1@rogue.oti.com...
> Is there a mecanism allowing to [undo / redo] proprietary actions ?
(actions
> that are not based on ITextViewer viewer)
>
> i.e. i want to use a manager that could cancel any custom action i could
> trigger.
>
> How can it be implemented in jface?
>
> Thanks in advance.
>
>
But is there a global mechanism for undoing and redoing ? (for example a
mecanism that would manage the whole application window)
Or must the undo / redo mechanism in jface be specific to a particular view
?