Community
Participate
Working Groups
Similar to bug 265565 (where we mistakenly stated in the description it is about SynchronizatioJob when it was about SubmitJob) we should provide the same means for SynchronizationJob. from the 265565 description: When scheduling a SynchronizeQueryJob from a UI component, such as a report, view, etc. there is no existing API available to access the progress of this synchronization which is relevant to the report, view, etc. It would be helpful if SynchronizeQueryJob (and other sync jobs) had API to access the progress monitor of the job. This way the view or page owner could report the progress to the user.
Created attachment 142195 [details] patch (internal) This introduced the delegatingProgressMonitor to each of the internal subclasses of SynchronizationJob
Created attachment 142196 [details] mylyn/context/zip
Created attachment 142197 [details] patch (api) This patch pulls out the field and getter of the delegatingProgressMonitor to the SynchronizationJob, making it an API change. Note: compilation error because of API baseline (not sure if or what to put as comment, leave that to whoever applies it eventually)
Created attachment 142198 [details] mylyn/context/zip
I have applied the first patch with a minor modification that makes the monitor field private since it's available through the getter anyways.
Thomas, can you update your patch? It looks like it is stale.
Created attachment 144076 [details] patch (api) v2 whoops, guess I should have thought about that when creating the second patch :) here is a non-stale version, thanks for catching that
Created attachment 144077 [details] mylyn/context/zip
Thanks Thomas! I have committed the patch.