not responding wizard [message #1777420] |
Wed, 29 November 2017 05:29 |
Eclipse User |
|
|
|
Hi,
I've implemented a jface wizard in my swt application. In one page of this wizard a time-consuming operation is monitored by the wizard's progress monitor as follows:
getContainer().run(true, false, new IRunnableWithProgress() {
@Override
public void run(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException {
monitor.beginTask("", IProgressMonitor.UNKNOWN);
getShell().getDisplay().asyncExec(new Runnable() {
@Override
public void run() {
//my operation
}
}
});
monitor.done();
}
});
The problem is that the application becomes not responding a little while after the operation starts. It seems that the fork parameter has no effect, becuase my operation is executed by the UI thread!!!
|
|
|
Powered by
FUDForum. Page generated in 0.10459 seconds