|
Re: Undo/Redo in emf [message #415685 is a reply to message #415684] |
Fri, 28 December 2007 20:49 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
Mowry,
Every generated editor, like the one you get following any of the
tutorials, shows this in action. Generally you need to use commands to
make changes to the model and execute those commands on the command
stack which provide control over the ability to undo and redo the
commands that have been executed. There are simple command like
AddCommand, RemoveCommand, and SetCommand for making changes. A
ChangeCommand can be quite useful because it allows you to make
arbitrary directly changes to the model without using command. You'd do
that by specializing doExecute to do the processing processing; it
records the notifications the model produces as it's changed and is able
to undo and redo the changes based on that.
mowry wrote:
> Hi All,
> I am not familiar with undo/redo mechanism in emf. I am using emf model in my application. Could you please point me to the some tutorials/samples. I would like to see all posibilities using undo/redo.
> Thanks in advance,
> Mowry
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03539 seconds