Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home »  » Standard Widget Toolkit (SWT) » Not responding
Not responding [message #1777421] Wed, 29 November 2017 10:30
Ali Sedaghat is currently offline Ali SedaghatFriend
Messages: 20
Registered: April 2015
Junior Member
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!!!

Previous Topic:not responding wizard
Next Topic:Not responding
Goto Forum:
  


Current Time: Sun Dec 17 00:46:35 GMT 2017

Powered by FUDForum. Page generated in 0.02376 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software