Implement undo/redo operations using EMF Refactor [message #857500] |
Thu, 26 April 2012 15:44 |
Iman Imani Messages: 4 Registered: April 2012 |
Junior Member |
|
|
Hi,
I implemented a refactoring tool using EMF Refactor. In some stages during refactoring I need to undo or redo applied refactorings. I used
editingDomain.getCommandStack().undo();
editingDomain.getCommandStack().redo();
to have access to CommandStack and do what I need. However, this methods are not what I really need. For example after a roll back I do not need revoked refactoring in the commandList . Therefore, I used refelection API to change and used the class as I like. However, I am not sure that is the best way.
Does anyone have any idea what is the best way to implement undo/redo operations in an EMF model. An example can be very useful.
Iman.
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.01725 seconds