Skip to main content



      Home
Home » Eclipse Projects » GEF » CommandStack in two WorkbenchPart?
CommandStack in two WorkbenchPart? [message #219579] Tue, 18 July 2006 13:25 Go to next message
Eclipse UserFriend
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 13:40 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 11:07:14 EDT 2025

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

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

Back to the top