ProgressMonitor does not update in Job [message #308360] |
Wed, 20 September 2006 10:06 |
Eclipse User |
|
|
|
I created a simple Job in the run() function of an action:
...
Job job = new Job("A Job")
{
public IStatus run(IProgressMonitor monitor)
{
monitor.beginTask("Task", 1);
monitor.subTask("SubTask");
// Do something for a few seconds ---
// like Thread.sleep(10000)
...
monitor.worked(1);
IStatus status = Status.OK_STATUS;
return status;
}
};
job.setUser(true);
job.schedule();
...
Problem:
The progress monitor in the job dialog does not update the Task and
SubTask. It still says "Operation in progress..." for the task and the
subtask is empty. But it shows up correctly in the "Progress" view.
If I single step over the 'monitor.beginTask("Task", 1);' and over
'monitor.subTask("SubTask");' it DOES update.
The UI is NOT blocking. Just the task and subtask won't update correctly
in the dialog. Why ?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.04065 seconds