Activating Undo, Redo & Delete in MenuBar? [message #146292] |
Tue, 03 August 2004 11:54  |
Eclipse User |
|
|
|
Originally posted by: mastr.arcor.de
Hey @ll!
How can I activate the menuitems "Undo", "Redo", "Delete" for Menu "Edit"?
I have an ActionRegistry, Actions added to it, a CommandStack and a
CommandStackListener. (I don't have sth. like an UpdateAction)
Do I need a gef.ActionBarContributor for that?
...If yes, how do I implement it for GEF 2.0.3 (com.ibm.etools).
Or does it work with only implementing ui.part.EditorActionBarContributor?
Else what is missing?
Thanks in advance.
Martin
|
|
|
Re: Activating Undo, Redo & Delete in MenuBar? [message #146479 is a reply to message #146292] |
Wed, 04 August 2004 11:29   |
Eclipse User |
|
|
|
Originally posted by: rlemaigr.ulb.ac.be
Hi,
> How can I activate the menuitems "Undo", "Redo", "Delete" for Menu =
> "Edit"?
>
> I have an ActionRegistry, Actions added to it, a CommandStack and a
> CommandStackListener. (I don't have sth. like an UpdateAction)
>
> Do I need a gef.ActionBarContributor for that?
> ..If yes, how do I implement it for GEF 2.0.3 (com.ibm.etools).
> Or does it work with only implementing =
> ui.part.EditorActionBarContributor?
>
> Else what is missing?
>
> Thanks in advance.
> Martin
You have to tell to Eclipse what it has to do when you editor is active =
=
and when the
user selects the undo, redo, delete...menu items. This is implemented by=
=
"retargetable actions"
("global actions"). I don't remember the code to contribute to them, but=
I =
remember
it is very well explained in the Eclipse doc. There are just some lines =
of =
code to add
in your EditorPart class.
I hope this will help,
r=E9gis
|
|
|
|
|
|
Re: Activating Undo, Redo & Delete in MenuBar? [message #146562 is a reply to message #146292] |
Wed, 04 August 2004 17:55  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
These actions are probably working with the logic example for that release.
That would be the best source for answers. It is probably the same as now,
you must register a global action handler.
"mastr" <mastr@arcor.de> wrote in message news:ceocft$3av$1@eclipse.org...
> Hey @ll!
>
> How can I activate the menuitems "Undo", "Redo", "Delete" for Menu "Edit"?
>
> I have an ActionRegistry, Actions added to it, a CommandStack and a
> CommandStackListener. (I don't have sth. like an UpdateAction)
>
> Do I need a gef.ActionBarContributor for that?
> ..If yes, how do I implement it for GEF 2.0.3 (com.ibm.etools).
> Or does it work with only implementing ui.part.EditorActionBarContributor?
>
> Else what is missing?
>
> Thanks in advance.
> Martin
>
|
|
|
Powered by
FUDForum. Page generated in 0.07201 seconds