@Override public void run() { if (HostApplet.this.application != null) { try { HostApplet.this.application.shutdown(false); } catch (Exception exception) { handleUncaughtException(exception); } // Remove the application from the application list applications.remove(HostApplet.this.application); HostApplet.this.application = null; } } }
@Override public void run() { try { application.startup(primaryDisplayHost.getDisplay(), new ImmutableMap<String, String>(properties)); } catch (Exception exception) { handleUncaughtException(exception); } } });
@Override protected void processWindowStateEvent(WindowEvent event) { super.processWindowStateEvent(event); switch(event.getID()) { case WindowEvent.WINDOW_ICONIFIED: { try { application.suspend(); } catch(Exception exception) { handleUncaughtException(exception); } break; } case WindowEvent.WINDOW_DEICONIFIED: { try { application.resume(); } catch(Exception exception) { handleUncaughtException(exception); } break; } default: { break; } } } }
@Override public void run() { // Start the application if (HostApplet.this.application != null) { // Add the application to the application list applications.add(HostApplet.this.application); try { HostApplet.this.application.startup(HostApplet.this.displayHost.getDisplay(), new ImmutableMap<String, String>(HostApplet.this.startupProperties)); } catch (Exception exception) { handleUncaughtException(exception); } } } }
handleUncaughtException(exception); handleUncaughtException(exception); handleUncaughtException(exception);
handleUncaughtException(exception); handleUncaughtException(exception);