Package net.azib.ipscan.gui

Examples of net.azib.ipscan.gui.MainWindow$EnablerDisabler


      LOG.finer("ComponentRegistry initialized after " + (System.currentTimeMillis() - startTime));

      processCommandLine(args, componentRegistry);

      // create the main window using dependency injection
      MainWindow mainWindow = componentRegistry.getMainWindow();
      LOG.fine("Startup time: " + (System.currentTimeMillis() - startTime));

      while (!mainWindow.isDisposed()) {
        try {
          if (!display.readAndDispatch())
            display.sleep();
        }
        catch (Throwable e) {
          if (e instanceof SWTException && e.getCause() != null)
            e = e.getCause();

          // display a nice error message
          String localizedMessage = getLocalizedMessage(e);
          Shell parent = display.getActiveShell();
          showMessage(parent != null ? parent : mainWindow.getShell(),
              e instanceof UserErrorException ? SWT.ICON_WARNING : SWT.ICON_ERROR,
              Labels.getLabel(e instanceof UserErrorException ? "text.userError" : "text.error"), localizedMessage);
        }
      }
View Full Code Here

TOP

Related Classes of net.azib.ipscan.gui.MainWindow$EnablerDisabler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.