|
Re: Undo/Redo without using item providers [message #421808 is a reply to message #421807] |
Wed, 13 August 2008 23:03 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
David,
Comments below.
David wrote:
> Hi,
>
> We have an application which uses emf model, and ui is build up on
> jface treeviewers and table viewers.
The viewers for which EMF provides handy viewing and editing support.
>
> I don't wnat to use emf.edit item providers to provide content for
> these viewers.
But you don't want to use the handy support for unstated reasons...
>
> Can I use emf.edit commands to do undo/redo withput using item providers?
You certainly can, but you'll need to create commands and execute them
on the command stack. You might find ChangeCommand handy for that; it
lets you just edit the model while keeping track of everything that's
changes...
>
> Can you please send some sample code or tutorial?
There isn't a tutorial for doing that, but it's fairly straight forward...
>
> Thanks in adnace,
> Daivd
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02970 seconds