Skip to main content



      Home
Home » Modeling » Graphiti » Saving vs Undo
Saving vs Undo [message #832945] Fri, 30 March 2012 15:26 Go to next message
Eclipse UserFriend
Currently (0.9.0, I think) the Editor flushes the command stack when doing a save. This means that after saving the diagram we loose the ability to undo (i.e. to revert to some state before the saving). This is hardly acceptable in most scenarios (I cannot recall any modern editor -text, image, whatever- that does that).

A comment in EmfService.save() says

// For the time being, we clear the command stack after saving.
// In a later sprint we might try to implement undo/redo
// across save calls (not that easy to handle the ResourceImpl.isModified flag, which is also
// set by save() outside any command).


Anyone has any experience or any tips about this issue?

[Updated on: Fri, 30 March 2012 15:28] by Moderator

Re: Saving vs Undo [message #834744 is a reply to message #832945] Mon, 02 April 2012 06:41 Go to previous message
Eclipse UserFriend
This is in for some hinstorical reasons I can unfortunatly no longer
remember. In our MOF-based version we had a command stack that was capable
of undo/redo across save operations. When we migrated to EMF the coding
snippet you found dropped in. Not sure what would be the consequences of
taking this out...

There's an open Bugzilla for this as well:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372753

Michael
Previous Topic:Preference page preview
Next Topic:SVG export clipping text
Goto Forum:
  


Current Time: Thu Jul 10 05:04:29 EDT 2025

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

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

Back to the top