Package org.eclipse.jface.dialogs

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


        workbench.getActiveWorkbenchWindow().getShell().setVisible(false);
       
        final Display display=Display.getCurrent();
        try {
            dialog.run(true, forced, new IRunnableWithProgress(){

                public void run( IProgressMonitor monitor2 ) throws InvocationTargetException,
                        InterruptedException {
                   
                    IProgressMonitor monitor=new OffThreadProgressMonitor(monitor2, display);
View Full Code Here


        ProgressMonitorDialog dialog = DialogUtil.openProgressMonitorDialog(shell, dialogTitle,
              showRunInBackground, confirmCancelRequests);

        try {

          dialog.run(true, true, new IRunnableWithProgress() {

            @Override
                        public void run(IProgressMonitor monitor)
              throws InvocationTargetException, InterruptedException {
              try {
View Full Code Here

        ProgressMonitorDialog dialog = DialogUtil.openProgressMonitorDialog(shell, dialogTitle,
              showRunInBackground, confirmCancelRequests);

        try {

          dialog.run(true, true, new IRunnableWithProgress() {

            @Override
                        public void run(final IProgressMonitor monitor)
              throws InvocationTargetException, InterruptedException {
              try {
View Full Code Here

                public void run() {
                    Shell shell = Display.getCurrent().getActiveShell();

                    ProgressMonitorDialog dialog = new ProgressMonitorDialog(shell);
                    try {
                        dialog.run(false, true, new IRunnableWithProgress() {

                            public void run(IProgressMonitor monitor)
                                    throws InvocationTargetException, InterruptedException {
                                CoordinateReferenceSystem found = CRSUtil
                                        .findEPSGCode(crs, monitor);
View Full Code Here

        if (createLnf(monitor))
          lnfCreationDone(monitor);
        }
      };
      ProgressMonitorDialog dialog = new ProgressMonitorDialog(getShell());
      dialog.run(true, true, runnable);
    } catch (Exception e) {
      LnfPlugin.getLogger().error(e);
      return;
    }
  }
View Full Code Here

        public void run(IProgressMonitor monitor) {
          safeSave(monitor);
        }
      };
      ProgressMonitorDialog dialog = new ProgressMonitorDialog(getShell());
      dialog.run(true, true, runnable);
    } catch (Exception e) {
      VisualSwingPlugin.getLogger().error(e);
      return;
    }
  }
View Full Code Here

          if (document.getNumberOfLines() < 40) {
            BusyIndicator.showWhile(shell.getDisplay(), runnable);

          } else {
            ProgressMonitorDialog dialog= new ProgressMonitorDialog(shell);
            dialog.run(false, true, runnable);
          }
        }
      }

    } catch (InterruptedException e) {
View Full Code Here

     
      XCDEProjectCrawler crawler = new XCDEProjectCrawler(projectList, XCDEProjectCrawler.UNLINK);
     
      try
      {
        monitorDialog.run(true, true, crawler);
      }
      catch(InvocationTargetException e)
      {
        throw new RuntimeException(e);
      }
View Full Code Here

            String[] files = dialog.getFileNames();
            String path = dialog.getFilterPath();
            for (int i = 0; i < files.length; i++) {
              files[i] = path + File.separatorChar + files[i];
            }
            progressDialog.run(true, false, new BundleDeployJob(getRepositoryLocation(selectedItem), files));
            viewer.refresh();
          } catch (InvocationTargetException e) {
            MessageDialog.openError(getShell(), "Add bundle", "Could not add bundle\n"
                + e.getTargetException().getMessage());
            e.printStackTrace();
View Full Code Here

        BundleDescriptor descriptor = (BundleDescriptor) selectedItem.getValue();
        if (MessageDialog.openConfirm(getShell(), "Removing bundle", "Are you sure to remove bundle\n"
            + descriptor.getBundleSymbolicName() + " (" + descriptor.getBundleVersion() + ")")) {
          ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(getShell());
          try {
            progressDialog.run(true, false, new BundleUndeployJob(getRepositoryLocation(selectedItem.getParent()),
                descriptor.getBundleSymbolicName(), descriptor.getBundleVersion()));
            viewer.refresh();
          } catch (InvocationTargetException e) {
            MessageDialog.openError(getShell(), "Add bundle", "Could not remove bundle\n"
                + e.getTargetException().getMessage());
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.