Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.Dialog.open()


  public void run() {
    if (getTextEditor() instanceof StructuredTextEditor) {
      final StructuredTextEditor editor = (StructuredTextEditor) getTextEditor();
      Dialog cleanupDialog = getCleanupDialog(editor.getSite().getShell());
      if (cleanupDialog != null) {
        if (cleanupDialog.open() == Window.OK) {
          // setup runnable
          Runnable runnable = new Runnable() {
            public void run() {
              IStructuredCleanupProcessor cleanupProcessor = getCleanupProcessor();
              if (cleanupProcessor != null)
View Full Code Here


        textEditor = (ITextEditor) o;
    }
    if (textEditor != null) {
      final ITextEditor finalTextEditor = textEditor;
      Dialog cleanupDialog = new CleanupDialogXML(editor.getSite().getShell());
      if (cleanupDialog.open() == Window.OK) {
        // setup runnable
        Runnable runnable = new Runnable() {
          public void run() {
            IStructuredCleanupProcessor cleanupProcessor = getCleanupProcessor();
            if (cleanupProcessor != null) {
View Full Code Here

    pipe.next();
   
    //need to open a dialog here to "halt" the ui thread so that the
    // the workbench doesn't close while the pipe is still running
    dialog.setBlockOnOpen(true);
    dialog.open();
    if (!shell.isDisposed())
      shell.dispose();
   
    assertTrue(l.state1);
    assertTrue(l.state2);
View Full Code Here

    };
    new Thread(runnable).start();
   
    dialog.setBlockOnOpen(true);
    if( !l.finished )
    dialog.open();
    if (!shell.isDisposed())
      shell.dispose();
   
    assertTrue(l.state1);
    assertTrue(l.state2);
View Full Code Here

  }

  private void tagEditSelection() {
    final IRequestLogRecord record = (IRequestLogRecord)((IStructuredSelection) tableViewer.getSelection()).getFirstElement();
    final Dialog dialog = TaggableEditorDialog.createDialog(getShell(), record);
    if (dialog.open() == Window.OK) {
      tableViewer.refresh();
    }
  } 
 
  @SuppressWarnings("unchecked")
View Full Code Here

      modelFileText.setText(configuration.getAttribute(ModelLaunchDelegate.VAR_ROOT_MODEL_PATH, ""));
      launchEverythingButton.setEnabled(configuration.getAttribute(ModelLaunchDelegate.VAR_ROOT_LAUNCH_EVERYTHING, true));
    } catch (CoreException e) {
      Dialog d = new ErrorDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(),
          "Configuration Error", "Error while configuring launch.", new Status(IStatus.ERROR, "q_impress", e.getMessage(), e), 0);
      d.open();
   
   
    dialogChanged();
  }
View Full Code Here

                    {
                        this.choice = choice;
                    }
                };
               
                dialog.open();
            }
        }
    }
   
    private void handleJumpCommand( final TableItem item,
View Full Code Here

                final Shell shell = PlatformUI.getWorkbench()
                    .getActiveWorkbenchWindow().getShell();
                final Dialog dialog = new PushResultDialog(
                    shell, localDb, result,
                    destinationString);
                dialog.open();
              }
            });
      }
      return Status.OK_STATUS;
    }
View Full Code Here

      PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
        public void run() {
          Dialog dlg = SimpleConfigureFetchDialog.getDialog(
              PlatformUI.getWorkbench().getDisplay()
                  .getActiveShell(), localDb);
          dlg.open();
        }
      });
    }
  }
View Full Code Here

      PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
        public void run() {
          Dialog dlg = SimpleConfigurePushDialog.getDialog(PlatformUI
              .getWorkbench().getDisplay().getActiveShell(),
              localDb);
          dlg.open();
        }
      });
    }
  }
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.