Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » not responding wizard
not responding wizard [message #1777420] Wed, 29 November 2017 10:29
Ali Sedaghat is currently offline Ali SedaghatFriend
Messages: 17
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:Linux Preview is Blank
Next Topic:When will i get "SWT_Window1" or "SWT_Window2" as class name for objects ?
Goto Forum:
  


Current Time: Fri Apr 19 01:00:40 GMT 2024

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

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

Back to the top