Examples of PleaseWaitDialog


Examples of net.sourceforge.processdash.ui.lib.PleaseWaitDialog

        shutdownThread.start();
    }
    private Object exitProgramSyncToken = new Object();

    private void exitProgramImpl() {
      PleaseWaitDialog dialog = new PleaseWaitDialog(this,
          resources.getString("Shutdown.Title"), "", 0);

      String backupQualifier = getBackupQualifier(data);
      try {
          if (quit(dialog) == false) {
              dialog.dispose();
              return;
          }
      } catch (Throwable t) {
          // if the shutdown sequence encounters an uncaught exception,
          // display an error message, but still exit.
          logErr("When shutting down, encountered the exception:", t);
      }

      try {
          if (osHelper != null) osHelper.dispose();
          SystemTrayManagement.getIcon().dispose();
          UserNotificationManager.getInstance().maybeHideNotifications();

          logger.fine("Backing up data directory");
          dialog.setMessage(resources.getString("Shutdown.Saving_Backup"));
          fileBackupManager.maybeRun(FileBackupManager.SHUTDOWN,
                backupQualifier);
          logger.fine("Shutdown complete");

      } finally {
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.mainpanel.PleaseWaitDialog

         // later.
         _treePanel.saveSelectedPaths();
        
         GUIUtils.processOnSwingEventThread(new Runnable() {
            public void run() {
               _waitDialog = new PleaseWaitDialog(stmt, _app);
               _waitDialog.showDialog(_app);                                         
               // Restore the paths
               _treePanel.restoreSavedSelectedPaths();
            }
         });        
View Full Code Here

Examples of org.openstreetmap.josm.gui.PleaseWaitDialog

          screenDimension.width, screenDimension.height)
          : new Rectangle(1000, 740);

    // preinitialize a wait dialog for all early downloads (e.g. via command
    // line)
    pleaseWaitDlg = new PleaseWaitDialog(null);
  }
View Full Code Here

Examples of org.openstreetmap.josm.gui.PleaseWaitDialog

  public void postConstructorProcessCmdLine(
      Map<String, Collection<String>> args) {
    // initialize the pleaseWaitDialog with the application as parent to
    // handle focus stuff
    pleaseWaitDlg = new PleaseWaitDialog(parent);

    if (args.containsKey("download"))
      for (String s : args.get("download"))
        downloadFromParamString(false, s);
    if (args.containsKey("downloadgps"))
View Full Code Here

Examples of org.openstreetmap.josm.gui.PleaseWaitDialog

        doInEDT(new Runnable() {
            @Override
            public void run() {
                Main.currentProgressMonitor = PleaseWaitProgressMonitor.this;
                if (dialogParent instanceof Frame && dialog == null) {
                    dialog = new PleaseWaitDialog(dialogParent);
                } else if (dialogParent instanceof Dialog && dialog == null) {
                    dialog = new PleaseWaitDialog(dialogParent);
                } else
                    throw new ProgressException("PleaseWaitDialog parent must be either Frame or Dialog");

                if (windowTitle != null) {
                    dialog.setTitle(windowTitle);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.