itemisCREATE / statecharts

YAKINDU Statechart Tools (http://www.statecharts.org)
Eclipse Public License 1.0
175 stars 86 forks source link

Applied styles are not visible after simulating statechart #1602

Open svenjawendler opened 7 years ago

svenjawendler commented 7 years ago

This is a BUG: How to reproduce:

  1. Take a statechart. Color a state. See that the state is colored and changes the color.
  2. Simulate the statechart.
  3. Color another state. See that the properties are changed, but the color of the state does not change visually.
  4. After closing an reopening the sct file is visible.

Detailed analysis: After setting the background color the following classes are involved: -> ResizeableCompartmentEditPart (gmf.runtime..) line 323 'scrollPane.setBackgroundColor()' --> Figure (draw2d) line 1478 repaint() ... line 1423 getUpdateManager() -> DeferredUpdateManager queueWork() variable updateQueued should be FALSE, but is TRUE after simulation. Because of this it is not visualized. Somehow the variable was set but no performUpdate() called afterwards.

Solution Idea: Class DefaultDynamicNotationHandler.terminate() -> clean up more...

svenjawendler commented 5 years ago

Still appears: 31st Oct 2018, SCT 3.4.2.