|Re: setBackground(Color color) not immediately affected after a call from an Adapter.notifyChanged() [message #1046877 is a reply to message #1043534]
||Mon, 22 April 2013 09:42
| Michael Wenz
Registered: July 2009
Location: Walldorf, Germany
from what you describe returning true on isAutoUpdateAtStartup should be the
right thing in your case.
But it seems that the diagram does not notice that the model has changed
underneath. Graphit triggers the DefaultUpdateDiagramFeature while opening
an editor for checking if anything needs to be marked red or updated
(depending on the setting in isAutoUpdateAtStartup).
The default implementation of that feature simply checks the top level
shapes (resp. their domain objects) for changes, simply by calling their
update features. So I suspect either your changes are not part of a
top-level shape so that the correct features are not called or your features
do not check for the change.
To analyze that you should set a breakpoint in the execute method of that
feature and see what it calles.
Powered by FUDForum
. Page generated in 0.24340 seconds