Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsException if the workbench has been already closed
https://www.eclipse.org/forums/index.php/mv/msg/208087/666629/#msg_666629
we want to test our product with swtbot but it needs a special close handling. I wrote a own test runner with a run listener. On testRunFinished() I want to close the workbench but in the testingFinished method in the class org.eclipse.ui.internal.testing.WorkbenchTestable there is no check if the display is null and the workbench has been already closed.
The Assert.isTrue(workbench.close()); prevents me from forcing the close of the workbench because of the special handling which is needed I got often an assertion here.
Would it be possible to change this code so that the display will be checked if it is not null or the assertion will be changed to a try { } catch(..)?
Thank you in advance.
Regards,
Marc ]]>No real name2011-04-21T11:51:15-00:00