Community
Participate
Working Groups
If a new instance of a UIProcess is created and started, the title and the note are properly displayed in the visualization window. If the same instance of the UIProcess is started again, the title and note are ignored. The process name gets displayed for both of them.
Created attachment 190649 [details] Patch that recreates the problem inside the example application.
Maybe I am wrong, but I believe a UIProcess should only be started once ? What about Eclipse Jobs ? Can you start them multiple times.
Yes, you can. I'm attaching another patch that includes the first one. It starts the same instance of an "Eclipse Job" as many times as the button is pressed. If a UIProcess is indeed supposed to be started only once, I would have expected to not be able to start it again but receive some kind of exception.
Created attachment 190655 [details] Uses the same instance of Job and UIProcess every time one of the buttons is pressed.
The problem has at least one other aspect: The hook initialUpdateUI() is also called only on the first execution of the process but not on any subsequent execution. However, the hook finalUpdateUI() is called every time.
Behaviour reproduced. The UIProcess should be restartable.
Created attachment 191105 [details] Patch allowing UIProcess to be reused. start() now returns a boolean value representing the result of scheduling
Patch works for me. Please commit. Thanks!
Fix allow reuse of UIProcess. start() now returns a boolean value reflecting if the process could be started or if the process is in "running, waiting or sleeping" state.