Skip to main content



      Home
Home » Modeling » Graphiti » Best way of clearing the commandstack on saving of editor(Best way of clearing the commandstack on saving of editor)
Best way of clearing the commandstack on saving of editor [message #1130092] Wed, 09 October 2013 04:16 Go to next message
Eclipse UserFriend
Hi All

I need to clear the command stack on save of graphiti editor.Is there any best way to clear or on save is graphiti framework itself taking care of clearing the command stack?

Can any one suggest the best approach for clearing the command stack.

Thanks
Palani
Re: Best way of clearing the commandstack on saving of editor [message #1130124 is a reply to message #1130092] Wed, 09 October 2013 04:40 Go to previous messageGo to next message
Eclipse UserFriend
Palani,

you need to flush the command stack on saving on the editor. Something like

editingDomain.getCommandStack().flush();

in the doSave method of the DefaultPersistencyBehavior (or rather your
subclass of it) should do it.

Michael
Re: Best way of clearing the commandstack on saving of editor [message #1130129 is a reply to message #1130124] Wed, 09 October 2013 04:48 Go to previous message
Eclipse UserFriend
Hi Michael

Thanks for your info.

Thanks
Palani
Previous Topic:Repaint whole Diagram
Next Topic:How UNDO works in graphiti?
Goto Forum:
  


Current Time: Sat Jul 19 11:42:40 EDT 2025

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

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

Back to the top