protected ApplicationHandle launchSpecific(Map arguments) throws Exception { // if this application is locked throw an exception. if (getLocked().booleanValue()) throw new IllegalStateException("Cannot launch a locked application."); //$NON-NLS-1$ // initialize the appHandle EclipseAppHandle appHandle = createAppHandle(arguments); try { // use the appContainer to launch the application on the main thread. appContainer.launch(appHandle); } catch (Throwable t) { // be sure to destroy the appHandle if an error occurs try { appHandle.destroy(); } catch (Throwable destroyError) { // ignore and clean up } if (t instanceof Exception) throw (Exception) t; throw (Error) t; } return appHandle; }
protected ApplicationHandle launchSpecific(Map arguments) throws Exception { // if this application is locked throw an exception. if (getLocked().booleanValue()) throw new IllegalStateException("Cannot launch a locked application."); //$NON-NLS-1$ // initialize the appHandle EclipseAppHandle appHandle = createAppHandle(arguments); try { // use the appContainer to launch the application on the main thread. appContainer.launch(appHandle); } catch (Throwable t) { // be sure to destroy the appHandle if an error occurs try { appHandle.destroy(); } catch (Throwable destroyError) { // ignore and clean up } if (t instanceof Exception) throw (Exception) t; throw (Error) t; } return appHandle; }
@Override protected ApplicationHandle launchSpecific(Map arguments) throws Exception { // if this application is locked throw an exception. if (getLocked().booleanValue()) throw new IllegalStateException("Cannot launch a locked application."); //$NON-NLS-1$ // initialize the appHandle EclipseAppHandle appHandle = createAppHandle(arguments); try { // use the appContainer to launch the application on the main thread. appContainer.launch(appHandle); } catch (Throwable t) { // be sure to destroy the appHandle if an error occurs try { appHandle.destroy(); } catch (Throwable destroyError) { // ignore and clean up } if (t instanceof Exception) throw (Exception) t; throw (Error) t; } return appHandle; }