eclipselabs / passerelle

Passerelle, an actor-based process engine based on Ptolemy II
5 stars 3 forks source link

Swing HMI state not correctly reset for error in Actor.preInitialize() #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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