Display display = PlatformUI.createDisplay();
display.asyncExec(new Runnable() {
public void run() {
launchOrionApplication();
new OSGiConsoleFactory().openConsole();
}
});
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {