Suppressing commands from auto-refresh? [message #905566] |
Thu, 30 August 2012 12:40  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05604 seconds