Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Undo/Redo without using item providers
Undo/Redo without using item providers [message #421807] Wed, 13 August 2008 21:29 Go to next message
mowry is currently offline mowryFriend
Messages: 51
Registered: July 2009
Member
Hi,

We have an application which uses emf model, and ui is build up on jface
treeviewers and table viewers.
I don't wnat to use emf.edit item providers to provide content for these
viewers.

Can I use emf.edit commands to do undo/redo withput using item providers?

Can you please send some sample code or tutorial?

Thanks in adnace,
Daivd
Re: Undo/Redo without using item providers [message #421808 is a reply to message #421807] Wed, 13 August 2008 23:03 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:CDO and Negotiator
Next Topic:Selecting properties in a read-only model
Goto Forum:
  


Current Time: Thu Apr 25 13:29:23 GMT 2024

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

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

Back to the top