|Rap e4 UISynchronize [message #1851953]
||Fri, 22 April 2022 16:45
| Gabe Colburn
Registered: December 2012
I was implementing a progress monitor widget for the eclipse jobs API based on RCP e4 examples using UISynchronize (dependency injected) to update the progress bar.|
As new user sessions were created in parallel, the progress bar would only update on the latest UI session. I assume UISynchronize isn't implemented in RAP to handle multiple UI sessions (based on their RAP UI thread)?
Since I have jobs running for specific users, I expect to need to track which UI Session/Display the job is for, and add some logic in the UI to only update progress bars for jobs submitted by that UISession. Instead of using the UISynchronize that gets injected, use Display.asyncExec();
Does embedding session information in the job sound like the right approach to implement a progress monitor for the jobs API in RAP e4? This is to monitor user session specific jobs, not global jobs across all users.
Open to suggestions on alternate approaches as well.
Powered by FUDForum
. Page generated in 0.01803 seconds