Skip to main content



      Home
Home » Modeling » Graphiti » Undo History
Undo History [message #699376] Thu, 21 July 2011 09:10 Go to next message
Eclipse UserFriend
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 06:19 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 17:41:24 EDT 2025

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

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

Back to the top