Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » CommandStack in two WorkbenchPart?
CommandStack in two WorkbenchPart? [message #219579] Tue, 18 July 2006 17:25 Go to next message
Dake Gu is currently offline Dake GuFriend
Messages: 17
Registered: July 2009
Junior Member
Right now, the CommandStack is saved in GraphEditor; so two workbench
windows can not share the same command stack.

But all the other editors(e.g. JavaEditor, TextEditor) support typing in one
workbench and undo in another.

Is it possible GEF supports that?
Re: CommandStack in two WorkbenchPart? [message #219587 is a reply to message #219579] Tue, 18 July 2006 17:40 Go to previous message
Dake Gu is currently offline Dake GuFriend
Messages: 17
Registered: July 2009
Junior Member
Any one did this before? I guess this could work:

1. share the model globally (like the IDocumentProvider connect()
disconnect() )
2. associate one CommandStack with one model
3. create my own move/undo/redo actions that get CommandStack from the
model.

"david" <folklayer@hotmail.com> wrote in message
news:e9j5in$3qc$1@utils.eclipse.org...
> Right now, the CommandStack is saved in GraphEditor; so two workbench
> windows can not share the same command stack.
>
> But all the other editors(e.g. JavaEditor, TextEditor) support typing in
> one workbench and undo in another.
>
> Is it possible GEF supports that?
>
>
Previous Topic:Correct Layout Procedure?
Next Topic:thumbnails and logical zooms
Goto Forum:
  


Current Time: Thu Jan 23 12:03:49 GMT 2025

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

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

Back to the top