Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Implement undo/redo operations using EMF Refactor
Implement undo/redo operations using EMF Refactor [message #857500] Thu, 26 April 2012 15:44
Iman Imani is currently offline Iman ImaniFriend
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.
Previous Topic:[EEF] looking for a updated tutorial
Next Topic:Edapt migrator
Goto Forum:
  


Current Time: Fri Apr 19 12:11:06 GMT 2024

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

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

Back to the top