Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » undo / redo
undo / redo [message #55153] Tue, 17 June 2003 12:31 Go to next message
Eclipse UserFriend
Originally posted by: t.gros.hyperoffice.fr

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.
Re: undo / redo [message #55183 is a reply to message #55153] Tue, 17 June 2003 12:55 Go to previous messageGo to next message
Emil Einarsson is currently offline Emil EinarssonFriend
Messages: 24
Registered: July 2009
Junior Member
Hi.

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.
>
>
Re: undo / redo [message #55210 is a reply to message #55183] Tue, 17 June 2003 13:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: t.gros.hyperoffice.fr

Thx u very much Emil,

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
?

Thomas.

"Emil Einarsson" <emil.einarsson@solme.se> a
Re: undo / redo [message #55235 is a reply to message #55210] Tue, 17 June 2003 14:07 Go to previous message
Eclipse UserFriend
Originally posted by: t.gros.hyperoffice.fr

In fact, to be clearer, i want to know if i can use the jface undo / redo
manager for customs actions
or if i must implement my own (<= huk :) ).


"Thomas" <t.gros@hyperoffice.fr> a
Re: undo / redo [message #594250 is a reply to message #55153] Tue, 17 June 2003 12:55 Go to previous message
Emil Einarsson is currently offline Emil EinarssonFriend
Messages: 24
Registered: July 2009
Junior Member
Hi.

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.
>
>
Re: undo / redo [message #594262 is a reply to message #55183] Tue, 17 June 2003 13:41 Go to previous message
Thomas is currently offline ThomasFriend
Messages: 151
Registered: July 2009
Senior Member
Thx u very much Emil,

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
?

Thomas.

"Emil Einarsson" <emil.einarsson@solme.se> a
Re: undo / redo [message #594271 is a reply to message #55210] Tue, 17 June 2003 14:07 Go to previous message
Thomas is currently offline ThomasFriend
Messages: 151
Registered: July 2009
Senior Member
In fact, to be clearer, i want to know if i can use the jface undo / redo
manager for customs actions
or if i must implement my own (<= huk :) ).


"Thomas" <t.gros@hyperoffice.fr> a
Previous Topic:undo / redo
Next Topic:How to override the Save Action of Eclipse File Save Menu
Goto Forum:
  


Current Time: Thu Apr 25 04:39:41 GMT 2024

Powered by FUDForum. Page generated in 0.03093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top