I've asked similar question before, but I think this one is a bit different.
When I update my model the diagram shows the changes and red hashed border appears around the shapes and exclamation label is created for the shape where change occurred. However, the refresh icon is disabled on the shape, so I can't update it manually. If I resize the editor the red border goes away, which prompts me to believe that change is registered by editor, but it does not refresh itself?
Perhaps I worded my question wrong. The diagram gets updated, however, red hashed border is still visible regardless.
To better explain this I recorder a video. As you can see when model updates, change is reflected is the diagram, however red border is still visible and disappears when I resize the editor. So is this some kind of issue with refresh? My update feature extends DefaultUpdateDiagramFeature.
Edit: I believe the red border was diapering after resize because of the resize feature that I implemented. If I remove resize feature, the red border stays there even when I resize the editor. The graphical elements are updated, so why is red border still there? Also, is the fact that refresh icon for shape with red border is not enabled indicates that both models are updated?
Michael Wenz Messages: 1887 Registered: July 2009 Location: Walldorf, Germany
hm, that sounds as if the editor refresh does not notice something has
changed. That might happen when something is updated that is not directly
linked to a relavant domain object. Triggering a refreshContent on the
DiagramBehavior (getDiagramBehavior on DiagramEditor) will help.