Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Suppressing commands from auto-refresh?
Suppressing commands from auto-refresh? [message #905566] Thu, 30 August 2012 16:40 Go to next message
Ed Swartz is currently offline Ed SwartzFriend
Messages: 3
Registered: June 2012
Location: Austin, TX
Junior Member
Hi Graphitians,

In a default editor, as per bug 352109, the diagram type provider automatically issues update requests when the model changes.

This is a fine idea and looks good in practice, but it means the command stack is packed with a lot of Update commands! Is there a way to combine the Update commands with the original command that caused the domain model change, so the undo stack is clearer?

-- Ed

Re: Suppressing commands from auto-refresh? [message #905896 is a reply to message #905566] Fri, 31 August 2012 09:14 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Ed,

combining these update commands with other manually triggered commands is
not possible now. But you might try and override the update commands
appearing in the undo stack by overriding the according update feature and
returning false on hasDoneChanges(). But, you need to make sure that none of
the masked changes is relevant for the real editor state and not just an
update that could automatically be applied. The editor graps its dirty state
from the undo stack, so users might not be able to save the editor with
their changes if you mask too much with hasDoneChanges() = false.

Michael
Previous Topic:Can I let Ctrl(or Option) + Drag to clone?
Next Topic:(announce) I developed a plugin that helps graphiti developers
Goto Forum:
  


Current Time: Sat Apr 20 05:52:48 GMT 2024

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

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

Back to the top