Package org.eclipse.jface.dialogs

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


      if (this.folders == null)
        this.folders = new ArrayList();
      if (file != null && file.isDirectory()) {
        ProgressMonitorDialog dialog2 = new TimeTriggeredProgressMonitorDialog(null, 500);
        try {
          dialog2.run(true, true, new IRunnableWithProgress() {
            public void run(IProgressMonitor monitor) {
              monitor.beginTask("Searching for man pages", 1);
              performSearch(file);
              monitor.done();
            }
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

        ProgressMonitorDialog monitorDialog = new AsynchronousProgressMonitorDialog(shell);
        monitorDialog.setCancelable(cancelable);
        monitorDialog.setBlockOnOpen(false);
        try {
            IRunnableWithProgress operation = new ProgressOperation(action);
            monitorDialog.run(false, false, operation);
            // Perform the action
        } catch (InvocationTargetException e) {
            Log.log(e);
        } catch (InterruptedException e) {
            Log.log(e);
View Full Code Here

                                        monitor.done();
                                    }
                                };

                                monitorDialog.run(true, true, operation);

                            } catch (Exception e) {
                                Log.log(e);
                            }
View Full Code Here

                monitorDialog.setBlockOnOpen(false);
                ObtainInterpreterInfoOperation operation;
                while (true) {
                    operation = new ObtainInterpreterInfoOperation(interpreterNameAndExecutable.o2, logger,
                            interpreterManager);
                    monitorDialog.run(true, false, operation);
                    if (operation.e != null) {
                        logger.println("- Some error happened while getting info on the interpreter:");
                        operation.e.printStackTrace(logger);

                        if (operation.e instanceof SimpleJythonRunner.JavaNotConfiguredException) {
View Full Code Here

                        nChanged[0] += doActionOnResource(next, monitor);
                    }
                }
            };
            boolean fork = !needsUIThread();
            monitorDialog.run(fork, true, operation);
        } catch (Throwable e) {
            Log.log(e);
        }

        afterRun(nChanged[0]);
View Full Code Here

                        monitor.done();
                    }
                }
            };

            monitorDialog.run(true, true, operation);

        } catch (Exception e) {
            Log.log(e);
        }
    }
View Full Code Here

                        nChanged[0] += doActionOnContainer(next, monitor);
                    }
                }
            };
            boolean fork = !needsUIThread();
            monitorDialog.run(fork, true, operation);
        } catch (Throwable e) {
            Log.log(e);
        }

        afterRun(nChanged[0]);
View Full Code Here

        if (outOfDateEntries.size() > 0 || outOfSyncEntries.size() > 0) {
            if (askForResearch(outOfDateEntries, outOfSyncEntries)) {
                ProgressMonitorDialog pmd = new AsynchronousProgressMonitorDialog(fSite.getShell());
                try {
                    pmd.run(true, true, new WorkspaceModifyOperation(null) {
                        protected void execute(IProgressMonitor monitor) throws CoreException {
                            research(monitor, outOfDateEntries, operation);
                        }
                    });
                    return true;
View Full Code Here

        Shell shl = new Shell();
        ProgressMonitorDialog dlg = new AsynchronousProgressMonitorDialog(shl);

        long l = System.currentTimeMillis();
        try {
            dlg.run(true, true, new IRunnableWithProgress() {

                public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                    monitor.beginTask("Testing", 100000);
                    for (long i = 0; i < 100000 && !monitor.isCanceled(); i++) {
                        //monitor.worked(1);
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.