How to reset dirty state in a graphiti diagram? [message #1698703] |
Wed, 17 June 2015 11:14 |
Flavio Donze Messages: 211 Registered: July 2009 Location: Switzerland |
Senior Member |
|
|
Hello
After opening an Eclipse Graphiti editor I want to do some initialization changes on the diagram. Doing that, using transactions, the editor turns dirty.
I didn't find a way to reset the dirty state, I don't want to save the diagram at this point.
BasicCommandStack commandStack = (BasicCommandStack) getEditingDomain().getCommandStack();
commandStack.execute(new RecordingCommand(getEditingDomain()) {
@Override
protected void doExecute() {
// do some change
}
});
If I use flush() on the command stack, my init changes are undone as well:
BasicCommandStack commandStack = (BasicCommandStack) getEditingDomain().getCommandStack();
commandStack.flush();
Is there a way to reset the dirty state?
Maybe there is a way to disable transaction handling or command stack recording?
greets
Flavio
Prozessmanagement und Qualitätsmanagement Software QMS/IMS
https://www.scodi.ch
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03120 seconds