Package org.eclipse.jface.dialogs

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


                }
            }
        };
        try
        {
            dialog.run(true, true, tearDownRunnable);
        }
        catch (InvocationTargetException tearDownE)
        {
            CactusPlugin.displayErrorMessage(
                CactusMessages.getString("CactusLaunch.message.teardown.error"),
View Full Code Here


      new ProgressMonitorDialog(
          PlatformUI.getWorkbench().getActiveWorkbenchWindow()
          .getShell()
      );
    try {
      dialog.run(false, true, this);
    } catch (InvocationTargetException e) {
      e.printStackTrace();
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
View Full Code Here

      new ProgressMonitorDialog(
          PlatformUI.getWorkbench().getActiveWorkbenchWindow()
          .getShell()
      );
    try {
      dialog.run(false, true, this);
    } catch (InvocationTargetException e) {
      e.printStackTrace();
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
View Full Code Here

        }
      }
    };
    ProgressMonitorDialog progressMonitorDialog =
        new ProgressMonitorDialog(DesignerPlugin.getShell());
    progressMonitorDialog.run(true, false, runnableWithProgress);
  }

  ////////////////////////////////////////////////////////////////////////////
  //
  // ANT Script
View Full Code Here

                                                                        /* (non-Javadoc)
                                                                         * @see java.lang.Runnable#run()
                                                                         */
                                                                        public void run() {
                                                                            try {
                                                                                dialog
                                                                                        .run(
                                                                                                false,
                                                                                                false,
                                                                                                runnable);
                                                                            } catch (InvocationTargetException e) {
View Full Code Here

      ILazyApplicationInfo[] applicationInfos = null;
      boolean configurationCompleted = false;
      try {
        ProgressMonitorDialog progressMonitorDialog = new ProgressMonitorDialog(shell);
        FindApplicationInfosOperation findApplicationInfosOperation = new FindApplicationInfosOperation();
        progressMonitorDialog.run(true, true, findApplicationInfosOperation);
        applicationInfos = findApplicationInfosOperation.getApplicationsInfos();
        if (applicationInfos.length == 1) {
          if (applicationInfos[0].getMajorVersion() == 2 || (applicationInfos[0].getMajorVersion() == 1 && applicationInfos[0].getMinorVersion() == 9)) {
            configuration.put(IOfficeApplication.APPLICATION_HOME_KEY,
                applicationInfos[0].getHome());
View Full Code Here

          useProgressMonitor = false;
      }
      ActivateOfficeApplicationOperation activateOfficeApplicationOperation = new ActivateOfficeApplicationOperation(officeApplication);
      if (useProgressMonitor) {
        ProgressMonitorDialog progressMonitorDialog = new ProgressMonitorDialog(shell);
        progressMonitorDialog.run(true, true, activateOfficeApplicationOperation);
      }
      else
        activateOfficeApplicationOperation.run(new NullProgressMonitor());
      if (activateOfficeApplicationOperation.getOfficeApplicationException() != null) {
        status = new Status(IStatus.ERROR,
View Full Code Here

  protected void install(IProject[] projects) {
    ProgressMonitorDialog progressMonitorDialog = new ProgressMonitorDialog(new Shell());
    Runnable runnable = new Runnable();
    runnable.projectsToBuild = projects;
    try {
      progressMonitorDialog.run(true, true, runnable);
    } catch (InvocationTargetException e) {
      DeploymentPlugin.getDefault().log(e);
    } catch (InterruptedException e) {
      DeploymentPlugin.getDefault().log(e);
    }
View Full Code Here

              IJavaProject javaProject = JavaCore.create(project);

              MethodSearch methodSearcher = new MethodSearch(javaProject);
              IRunnableWithProgress op = methodSearcher;
              ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(shell);
              progressDialog.run(true, true, op);

              // output format?
              MessageDialog formatDialog = new MessageDialog(shell, "Output Format", null, "What kind of output do you want?", 0, new String[] { "cancel", "Comments", "Text File", }, 1);
              formatDialog.open();
              if (formatDialog.getReturnCode() == 2) {
View Full Code Here

  public void run(IAction action) {
   
    System.out.println("testing...");
    ProgressMonitorDialog dialog = new ProgressMonitorDialog(Activator.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell());
    try {
      dialog.run(true, true, new IRunnableWithProgress() {
        public void run(IProgressMonitor monitor) {
          //System.out.println("action.getText---" + action.getText());
          IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
          Git git = null;
          try {
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.