Community
Participate
Working Groups
build F1 AntLaunchWizard.performFinish() has a IRunnableWithProgress that calls DefaultRunnerContext.run(). Note that the Wizard does not run in the UI thread and inside the run() method, if a problem occurs, it tries to show a dialog with a message (I guess). So the SWT exception is thrown because of the thread issue. The other problem is that this exception is later on caught and wrapped in an InvocationTargetException. There is a try/catch block in AntLaunchWizard.performFinish() that creates a IStatus and shows an error dialog. The problem is that this dialog does not show the status information. It does say that an internal error has occurred and the use should see the log for details. The tools log is empty and there is no info in the .log file. To reproduce the problem, there is a workspace zipped in bug 16749 that can be used.
*** Bug 17589 has been marked as a duplicate of this bug. ***
Need to talk to UI using Display.[a]syncExec. Should show status info in dialog. See ErrorDialog.
Dialog is now opened using Display.syncExec() call. Wrapped core exception used in error dialog instead of the InvokationTargetException.