Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog$ProgressMonitor


                }
            }
        };

        try {
            new ProgressMonitorDialog(getSite().getWorkbenchWindow().getShell())
                    .run(false, true, op);
            setInput(new FileEditorInput(file));
            getCommandStack().markSaveLocation();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here


                        }
                    }
                };

                try {
                    new ProgressMonitorDialog(targetPart.getSite().getShell()).run(false, true, op);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        } catch (Throwable t) {
View Full Code Here

   * @throws InvocationTargetException
   * @throws InterruptedException
   */
  public void put(final String directory) throws SftpException,
      JSchException, InvocationTargetException, InterruptedException {
    ProgressMonitorDialog progress =
        new ProgressMonitorDialog((Display.getCurrent() == null) ? null
            : Display.getCurrent().getActiveShell());
    progress.setCancelable(true);

    PlatformUI.getWorkbench().getProgressService().busyCursorWhile(
        new IRunnableWithProgress() {
          public void run(IProgressMonitor monitor)
              throws InvocationTargetException, InterruptedException {
View Full Code Here

          baseType = getPackageFragmentRoot().getJavaProject().findType(
              baseClassName);

          // edit this to limit the scope
          SelectionDialog dialog = JavaUI.createTypeDialog(
              composite.getShell(), new ProgressMonitorDialog(composite
                  .getShell()), SearchEngine.createHierarchyScope(baseType),
              IJavaElementSearchConstants.CONSIDER_CLASSES, false);

          dialog.setMessage("&Choose a type:");
          dialog.setBlockOnOpen(true);
View Full Code Here

  /**
   * Validates whether Hadoop exists at the specified server location
   *
   */
  private void testLocation() {
    ProgressMonitorDialog dialog = new ProgressMonitorDialog(getShell());
    dialog.setOpenOnRun(true);

    try {
      final HadoopServer location = defineServerFromValues();

      try {
        dialog.run(true, false, new IRunnableWithProgress() {
          public void run(IProgressMonitor monitor)
              throws InvocationTargetException, InterruptedException {
            Session session = null;
            try {
              session = location.createSession();
View Full Code Here

        public void run() {

          switch (progressState) {
          case PROGRESS_STARTED:
            if (!continuous) {
              pmd = new ProgressMonitorDialog(getShell());
              progressMonitor = pmd.getProgressMonitor();
              pmd.open();
              progressMonitor.beginTask("Layout Running...", e.getTotalNumberOfSteps());
            }
            break;
View Full Code Here

        public void run() {

          switch (progressState) {
          case PROGRESS_STARTED:
            if (!continuous) {
              pmd = new ProgressMonitorDialog(getShell());
              progressMonitor = pmd.getProgressMonitor();
              pmd.open();
              progressMonitor.beginTask("Layout Running...", e.getTotalNumberOfSteps());
            }
            break;
View Full Code Here

                        }
                    }
                };

                try {
                    new ProgressMonitorDialog(targetPart.getSite().getShell()).run(false, true, op);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        } catch (Throwable t) {
View Full Code Here

                                boolean ok = MessageDialog.openConfirm(getParentShell(),
                                        Messages.EditBlackboardUtil_Update_Selection,
                                        Messages.EditBlackboardUtil_update_selection_confirmation);
                                if (ok) {
                                    try {
                                        ProgressMonitorDialog d = new ProgressMonitorDialog(this
                                                .getParentShell());

                                        blackboardLock.unlock();
                                        d.run(false, false, new IRunnableWithProgress(){
                                            public void run( IProgressMonitor monitor ) {
                                                updateFeatures(layer, monitor, dirtyArea);
                                            }
                                        });
                                        okPressed();
View Full Code Here

        display.asyncExec(new Runnable() {
            public void run() {
                BusyIndicator.showWhile(display, new Runnable() {
                    public void run() {
                        ProgressMonitorDialog dialog = new ProgressMonitorDialog(display
                                .getActiveShell());

                        try {
                            dialog.run(false, false, progressRunnable);
                        } catch (InvocationTargetException e) {
                            // won't happen
                            ProjectPlugin.log("", e);
                        } catch (InterruptedException e) {
                            // won't happen
View Full Code Here

TOP

Related Classes of org.eclipse.jface.dialogs.ProgressMonitorDialog$ProgressMonitor

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.