Swing HMI state not correctly reset for error in Actor.preInitialize()
Closed this issue · 2 comments
GoogleCodeExporter commented
When an exception is thrown from an Actor.preInitialize(), the model stops
correctly before any work can get done by any (other) actor,
This is as required.
But the model execution toolbar buttons don't get reset correctly to the "idle"
state. They stay in "executing" state.
It seems the exception is correctly reported to any registered
ExecutionListener, but the "execution finished" event is not.
Original issue reported on code.google.com by erwin...@gmail.com
on 5 Jan 2013 at 5:22
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
Ptolemy only invokes the finished method when it has not seen an exception
during the model execution.
In HMIBase's ModelExecutionListener, the error callback method also indicates
the execution termination now, in such cases.
Original comment by erwin...@gmail.com
on 5 Jan 2013 at 9:20
- Changed state: Fixed