Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » UndoRedoActionGroup problem
UndoRedoActionGroup problem [message #462696] Mon, 17 October 2005 13:21 Go to next message
Hans is currently offline HansFriend
Messages: 36
Registered: July 2009
Member
I am trying to activate the global undo/redo menu items for a specific
EditorPart. This works nicely as long as I let my editor active, but when
I switch to another view in the workspace, the whole undo mechanism seems
to be "forgotten" and only shows deactivated undo/redo actions.
Apparently there is something wrong with the way in which I install the
actions. Does anyone know what I am doing wrong - relevant code is below:

EditorPart myEditor = ...;
IUndoContext undoContext = new ObjectUndoContext(myEditor);
UndoRedoActionGroup group = new UndoRedoActionGroup(myEditor.getSite(),
undoContext, false);
group.fillActionBars(myEditor.getEditorSite().getActionBars( ));
Re: UndoRedoActionGroup problem [message #462698 is a reply to message #462696] Mon, 17 October 2005 13:30 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You should probably ask this question in eclipse.platform.

Later,
PW


Re: UndoRedoActionGroup problem [message #462699 is a reply to message #462698] Mon, 17 October 2005 13:35 Go to previous message
Hans is currently offline HansFriend
Messages: 36
Registered: July 2009
Member
Paul Webster wrote:
> You should probably ask this question in eclipse.platform.
>
> Later,
> PW

My apologies - will do.
Previous Topic:Browser.execute()
Next Topic:[Browser] How to grab key events?
Goto Forum:
  


Current Time: Fri Sep 18 14:39:37 GMT 2020

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

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

Back to the top