Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] Easier non-blocking progress report in dialogs: need API



On Sun, Oct 16, 2016 at 6:26 AM, Mickael Istria <mistria@xxxxxxxxxx> wrote:
Hi again,

I'm trying to find a decent solution to https://bugs.eclipse.org/bugs/show_bug.cgi?id=495007 . I'd like to discuss the cause of this issue, and most likely of some other similar issues - or workarounds such as requiring to hit "Enter", reducing "fluidity" of the interface- in Eclipse IDE:

As I've spent some more time on this topic, we IMHO just need to expose some APIs to more easily customize where progress is reported for Jobs in order to make it possible to greatly improve development and usage of long operations in dialogs.

Concretely, something like ProgressManager.getInstance().progressFor(myJob).addProgressListener(wizardProgressMonitor) would be ideal.

I'm thinking of a simpler API:

myJob.join(0, wizardProgressMonitor)

Job.join(long, IProgressMonitor) method already exists but the Javadoc for the second parameter says: "No progress is reported on this monitor." There are other scenarios when progress reporting on the joining monitor is desired, e.g. when a user job is joining on a system job. Currently the user job is not reporting any progress during the join call, but it would be nice if it did.

Those APIs are currently not accessible and the JobMonitor only support a single listener, but changing that is very affordable.

Behind the scene the new behavior of the Job.join(long, IProgressMonitor) method would be implemented by allowing multiple listeners on the JobMonitor as you proposed.

Is anyone aware of some already existing initiative and/or bugs about making it easier for people to report job progress anywhere it makes sense (rather than in current Progress view, status bar and ProgressDialog) ?

Cheers,

--
Mickael Istria
Eclipse developer for Red Hat Developers
My blog - My Tweets

-sergey 

_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev


Back to the top