Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog.open()


  protected boolean innerPerformFinish() {

    try {

      ProgressMonitorDialog progressMonitor = new ProgressMonitorDialog(getShell());
      progressMonitor.open();
     
      progressMonitor.run(true, true, new UploadRunable(_serverPage.getSelectedServers()));
     
      List<String> serverNames = new ArrayList<String>();
      Iterator<WGARemoteServer> remoteServers = _serverPage.getSelectedServers().iterator();
View Full Code Here


        for (IFeed feed : feeds) {
          newsCounter.put(feed.getLink(), count(feed));

          /* Open the Dialog if exceeded SHOW_PROGRESS_THRESHOLD ms */
          if (System.currentTimeMillis() - start > SHOW_PROGRESS_THRESHOLD && !fDialogOpened) {
            dialog.open();
            monitor.beginTask("RSSOwl was not shutdown properly. Restoring data, please wait...", feeds.size() - worked);
            fDialogOpened = true;
          }

          /* Worked a bit again... */
 
View Full Code Here

        LongOperationMonitor callbackMonitor = new LongOperationMonitor(monitor) {
          @Override
          public void beginLongOperation() {
            Display.getDefault().syncExec(new Runnable() {
              public void run() {
                dialog.open();
              }
            });
          }
        };
View Full Code Here

        LongOperationMonitor callbackMonitor = new LongOperationMonitor(monitor) {
          @Override
          public void beginLongOperation() {
            Display.getDefault().syncExec(new Runnable() {
              public void run() {
                dialog.open();
              }
            });
          }
        };
View Full Code Here

        for (IFeed feed : feeds) {
          newsCounter.put(feed.getLink(), count(feed));

          /* Open the Dialog if exceeded SHOW_PROGRESS_THRESHOLD ms */
          if (System.currentTimeMillis() - start > SHOW_PROGRESS_THRESHOLD && !fDialogOpened) {
            dialog.open();
            monitor.beginTask("RSSOwl was not shutdown properly. Restoring data...", feeds.size() - worked);
            fDialogOpened = true;
          }

          /* Worked a bit again... */
 
View Full Code Here

    private ProgressMonitorDialog getDialog( IWorkbench workbench ) {
        Shell shell = new Shell(Display.getCurrent());

        ProgressMonitorDialog dialog = new ProgressMonitorDialog(shell);
        dialog.open();
        return dialog;
    }

    /**
     *  Returns the shared instance for the application.  In most cases this method should
View Full Code Here

        final ECPProject project = (ECPProject) ((StructuredSelection) sel).getFirstElement();
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        final ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(shell);
        progressDialog.open();
        progressDialog.getProgressMonitor().beginTask("Cleaning up project...", 10);
       
      Callable<Void> call = new Callable<Void>()
      {
      @Override
View Full Code Here

        new EMFStoreCommand() {
           
            @Override
            protected void doRun()
            {
                progressDialog.open();
               
                Activator.getAccessLayer().invalidateCache(project);
               
                progressDialog.getProgressMonitor().beginTask("Cleaning up project...", 10);
               
View Full Code Here

        try {
            // TODO Should these operations run in an IWorkspaceRunnable?
            Shell shell = EditorAPI.getAWorkbenchWindow().getShell();
            ProgressMonitorDialog progressMonitorDialog = new ProgressMonitorDialog(
                shell);
            progressMonitorDialog.open();
            Shell pmdShell = progressMonitorDialog.getShell();
            pmdShell.setText("Saros running VCS operation");
            log.trace("about to call progressMonitorDialog.run");
            progressMonitorDialog.run(true, false, new IRunnableWithProgress() {
                public void run(IProgressMonitor progress)
View Full Code Here

            WorkbenchMessages.EditorManager_openNewEditorLabel }, 0);
    int result = dialog.open();
    if (result == 0) { // YES
      ProgressMonitorDialog pmd = new ProgressMonitorJobsDialog(dialog
          .getShell());
      pmd.open();
      dirtyEditor.getEditor(true).doSave(pmd.getProgressMonitor());
      pmd.close();
    } else if ((result == 2) || (result == -1)) {
      return null;
    }
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.