Skip to main content



      Home
Home » Modeling » Graphiti » Suppressing commands from auto-refresh?
Suppressing commands from auto-refresh? [message #905566] Thu, 30 August 2012 12:40 Go to next message
Eclipse UserFriend
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 05:14 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 01:27:54 EDT 2025

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

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

Back to the top