Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Undo History
Undo History [message #699376] Thu, 21 July 2011 13:10 Go to next message
Rhett Hudson is currently offline Rhett Hudson
Messages: 43
Registered: September 2010
Member
I have some questions about undo. I was hoping someone could point me down the appropriate path. My observations of undo behavior show:

  • Undo can remember 20 commands
  • Undo looses all history on save

Are those characteristics something that Graphiti is implementing? Or are they at a different layer. If they are in the Graphiti layer, can someone point to where in thee code they are implemented? My grep attempts have not yet yielded any useful hits. Also, if appropriate, perhaps someone would like to warn me of the consequences of meddling with that?

Thanks!


Re: Undo History [message #699797 is a reply to message #699376] Fri, 22 July 2011 10:19 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1621
Registered: July 2009
Location: Walldorf, Germany
Senior Member
The stack size of 20 is defined by Eclipse
(org.eclipse.core.commands.operations.DefaultOperationHistory#DEFAULT_LIMIT.
The flushing of the command stack is done by Graphiti
(org.eclipse.graphiti.ui.internal.services.impl.EmfService#save, Line 269).
It was introduced because there were issues with undo after a save was done.
Unfotunatly I cannot recall the details just now...

Michael


"Rhett Hudson" schrieb im Newsbeitrag news:j097su$2c7$1@news.eclipse.org...

I have some questions about undo. I was hoping someone could point me down
the appropriate path. My observations of undo behavior show:

Undo can remember 20 commands
Undo looses all history on save

Are those characteristics something that Graphiti is implementing? Or are
they at a different layer. If they are in the Graphiti layer, can someone
point to where in thee code they are implemented? My grep attempts have not
yet yielded any useful hits. Also, if appropriate, perhaps someone would
like to warn me of the consequences of meddling with that?

Thanks!
Previous Topic:Resizing of a Polygon - Bug?
Next Topic:getPictogramElements returning too many objects
Goto Forum:
  


Current Time: Thu Oct 30 12:14:52 GMT 2014

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

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