Package org.eclipse.jface.dialogs

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


                // Run async, so we can continue to receive messages over the
                // network...
                Utils.runSafeSWTAsync(log, new Runnable() {
                    public void run() {
                        try {
                            dialog.run(true, true, new IRunnableWithProgress() {
                                public void run(IProgressMonitor monitor) {
                                    runRecovery(checksumError,
                                        SubMonitor.convert(monitor));
                                }
                            });
View Full Code Here


    public static void setReadOnly(final IProject project,
        final boolean readonly) {
        ProgressMonitorDialog dialog = new ProgressMonitorDialog(
            EditorAPI.getShell());
        try {
            dialog.run(true, false, new IRunnableWithProgress() {
                public void run(final IProgressMonitor monitor) {
                    FileUtils.setReadOnly(project, readonly, monitor);
                }
            });
        } catch (InvocationTargetException e) {
View Full Code Here

        public void run() {

            ProgressMonitorDialog dialog = new ProgressMonitorDialog(
                EditorAPI.getShell());
            try {
                dialog.run(true, true, new IRunnableWithProgress() {
                    public void run(IProgressMonitor monitor)
                        throws InterruptedException {

                        monitor
                            .beginTask(
View Full Code Here

                    dialogShell = new Shell();

                ProgressMonitorDialog dialog = new ProgressMonitorDialog(
                    dialogShell);
                try {
                    dialog.run(true, true, new IRunnableWithProgress() {
                        public void run(IProgressMonitor monitor)
                            throws InterruptedException {

                            SubMonitor progress = SubMonitor.convert(monitor);
                            progress
View Full Code Here

            model.getContentTypeIdentifier(), document, selectionStartLine, selectionEndLine, display);
       
        //if toggling lots of lines then use progress monitor else just run the operation
        if((selectionEndLine - selectionStartLine) > TOGGLE_LINES_MAX_NO_BUSY_INDICATOR && display != null) {
          ProgressMonitorDialog dialog = new ProgressMonitorDialog(display.getActiveShell());
          dialog.run(false, true, toggleCommentsRunnable);
        } else {
          toggleCommentsRunnable.run(new NullProgressMonitor());
        }
      }
    } catch (InvocationTargetException e) {
View Full Code Here

      }
        };

        try {
      ProgressMonitorDialog monitorDialog = new ProgressMonitorDialog(shell);
      monitorDialog.run(true, false, progress);

    } catch (InvocationTargetException e) {
      MessageDialog.openError(shell, "Error", e.getMessage());
    } catch (InterruptedException e) {
      MessageDialog.openInformation(shell, "Cancelled", e.getMessage());
View Full Code Here

              }
                };
 
                try {
              ProgressMonitorDialog monitorDialog = new ProgressMonitorDialog(shell);
              monitorDialog.run(true, false, progress);
             
              //Se n�o conseguir copiar o arquivo fechar o GD Cliente
              if (error){
                MessageDialog.openError(new Shell(), "Gerente Digital Cliente!", "N�o foi poss�vel copiar o Snapshot.");
                System.exit(0);
View Full Code Here

  }

  private void runServer() {
    try {
          ProgressMonitorDialog monitorDialog = new ProgressMonitorDialog(shell);
      monitorDialog.run(true, false, server);
     
          } catch (InvocationTargetException e) {
            MessageDialog.openError(shell, "Error", e.getMessage());
          } catch (InterruptedException e) {
            MessageDialog.openInformation(shell, "Cancelled", e.getMessage());
View Full Code Here

        }
        };

        try {
          ProgressMonitorDialog monitorDialog = new ProgressMonitorDialog(shell);
          monitorDialog.run(true, false, progress);
           
          } catch (InvocationTargetException e) {
            MessageDialog.openError(shell, "Error", e.getMessage());
          } catch (InterruptedException e) {
            MessageDialog.openInformation(shell, "Cancelled", e.getMessage());
View Full Code Here

                }
              };

              try {
                ProgressMonitorDialog monitorDialog = new ProgressMonitorDialog(shell);
                monitorDialog.run(true, false, progress);

              } catch (InvocationTargetException e) {
                MessageDialog.openError(shell, "Error", e.getMessage());
              } catch (InterruptedException e) {
                MessageDialog.openInformation(shell,"Cancelled", e.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.