|
|
Re: Job: Block UI from user but show progress [message #630595 is a reply to message #630350] |
Mon, 04 October 2010 10:56 |
Martin W Messages: 7 Registered: July 2009 |
Junior Member |
|
|
Prakash G.R. wrote on Fri, 01 October 2010 13:01 | Did you try ProgressMonitorDialog?
|
Yes, I have tried ProgressMonitorDialog. It has the disadvantage that the dialog comes always. Let me explain why this is a problem. The progress dialog of a job will be opened with a delay of a few seconds. So if the job runs less then one second there will be no progress dialog. But with ProgressMonitorDialog and IRunnableWithProgress the progress dialog will be opened always, even if the job takes less than one second. My job will run after a drag 'n' drop operation. Normally my job is faster then one second. In this case it is very disruptive if the progress dialog open and close in the same second. It looks like flashing. But if the amount of data is very big, it can happen that the same job needs a whole minute. In this case I need a progress dialog of course.
I want to have the same behaviour like normal jobs in Eclipse: show the progress dialog with a delay of a few seconds. So the user will see the progress dialog only for long-running jobs. But how can I have this behaviour including blocking the UI to prevent the user from doing any changes.
[Updated on: Mon, 04 October 2010 10:57] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03666 seconds