Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:16 Go to next message
PALANI SANKAR is currently offline PALANI SANKARFriend
Messages: 35
Registered: April 2013
Member
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


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 08:40 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 08:48 Go to previous message
PALANI SANKAR is currently offline PALANI SANKARFriend
Messages: 35
Registered: April 2013
Member
Hi Michael

Thanks for your info.

Thanks
Palani


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


Current Time: Sun Dec 21 00:38:02 GMT 2014

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

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