Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339210 - Title and note are being ignored by UIProcess window on second start()
Summary: Title and note are being ignored by UIProcess window on second start()
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: UI (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.0.0   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-08 07:36 EST by Stephan Mann CLA
Modified: 2013-05-08 09:59 EDT (History)
1 user (show)

See Also:


Attachments
Patch that recreates the problem inside the example application. (2.18 KB, patch)
2011-03-08 07:37 EST, Stephan Mann CLA
no flags Details | Diff
Uses the same instance of Job and UIProcess every time one of the buttons is pressed. (2.88 KB, patch)
2011-03-08 08:23 EST, Stephan Mann CLA
no flags Details | Diff
Patch allowing UIProcess to be reused. start() now returns a boolean value representing the result of scheduling (7.85 KB, patch)
2011-03-14 08:42 EDT, Nobody - feel free to take it CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Mann CLA 2011-03-08 07:36:20 EST
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.
Comment 1 Stephan Mann CLA 2011-03-08 07:37:15 EST
Created attachment 190649 [details]
Patch that recreates the problem inside the example application.
Comment 2 Christian Campo CLA 2011-03-08 07:54:58 EST
Maybe I am wrong, but I believe a UIProcess should only be started once ? What about Eclipse Jobs ? Can you start them multiple times.
Comment 3 Stephan Mann CLA 2011-03-08 08:20:45 EST
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.
Comment 4 Stephan Mann CLA 2011-03-08 08:23:20 EST
Created attachment 190655 [details]
Uses the same instance of Job and UIProcess every time one of the buttons is pressed.
Comment 5 Stephan Mann CLA 2011-03-09 08:39:43 EST
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.
Comment 6 Nobody - feel free to take it CLA 2011-03-14 08:37:23 EDT
Behaviour reproduced. The UIProcess should be restartable.
Comment 7 Nobody - feel free to take it CLA 2011-03-14 08:42:27 EDT
Created attachment 191105 [details]
Patch allowing UIProcess to be reused. start() now returns a boolean value representing the result of scheduling
Comment 8 Stephan Mann CLA 2011-04-01 03:50:36 EDT
Patch works for me. Please commit. Thanks!
Comment 9 Nobody - feel free to take it CLA 2011-05-20 06:00:23 EDT
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.