Examples of open()


Examples of org.python.pydev.ui.dialogs.TreeSelectionDialog.open()

        dialog.setTitle("PyDev: Select tests to run");
        dialog.setMessage("Select the tests to run (press enter to run tests shown/selected)");
        dialog.setInitialFilter("test");
        dialog.setAllowMultiple(true);
        dialog.setInput(ast);
        int open = dialog.open();
        if (open != Window.OK) {
            return;
        }
        Object[] result = dialog.getResult();
View Full Code Here

Examples of org.radargun.reporting.html.TimelineDocument.open()

      Cluster cluster = new Cluster();
      cluster.addGroup("default", 2);
      TimelineDocument doc = new TimelineDocument(new TimelineDocument.Configuration(), "test", "testconfig", "Test Config", Arrays.asList(t0, t1), cluster);
      try {
         doc.open();
         doc.writeTimelines();
         doc.close();
      } catch (IOException e) {
         e.printStackTrace();
      }
View Full Code Here

Examples of org.renjin.primitives.io.connections.Connection.open()

      boolean evalPromises) throws IOException {
   
    Connection con = Connections.getConnection(context, connHandle);
    boolean wasOpen = con.isOpen();
    if(!wasOpen) {
      con.open(new OpenSpec("wb"));
    }
   
    if(!con.canWrite()) {
      throw new EvalException("connection not open for writing");
    }
View Full Code Here

Examples of org.rssowl.ui.internal.dialogs.ActivityDialog.open()

      public void run() {
        ActivityDialog instance = ActivityDialog.getVisibleInstance();
        if (instance == null) {
          ActivityDialog dialog = new ActivityDialog(shell);
          dialog.setBlockOnOpen(false);
          dialog.open();
        } else {
          instance.getShell().forceActive();
        }
      }
    });
View Full Code Here

Examples of org.rssowl.ui.internal.dialogs.AddCredentialsDialog.open()

    updateApplyEnablement(false);
  }

  private void onAdd() {
    AddCredentialsDialog dialog = new AddCredentialsDialog(getShell());
    if (dialog.open() == IDialogConstants.OK_ID) {
      String site = dialog.getSite();
      final String username = dialog.getUsername();
      final String password = dialog.getPassword();

      try {
View Full Code Here

Examples of org.rssowl.ui.internal.dialogs.AggregateNewsDialog.open()

        boolean askUserForAggregationOption = !preferences.getBoolean(DefaultPreferences.REMEMBER_AGGREGATE_NEWS_OPTION);

        /* Ask user for Aggregation Mode if required */
        if (askUserForAggregationOption) {
          AggregateNewsDialog dialog = new AggregateNewsDialog(fTargetPart.getSite().getShell(), ((IFolder) firstElem).getName());
          int res = dialog.open();

          /* Check for Cancellation */
          if (res == IDialogConstants.CANCEL_ID)
            return;

View Full Code Here

Examples of org.rssowl.ui.internal.dialogs.ArchiveNewsDialog.open()

  private void handleFirstArchive() {

    /* Inform the user about archive feature */
    ArchiveNewsDialog dialog = new ArchiveNewsDialog(OwlUI.getActiveShell());
    int res = dialog.open();

    /* Check for Cancellation */
    if (res == IDialogConstants.CANCEL_ID)
      return;

View Full Code Here

Examples of org.rssowl.ui.internal.dialogs.ConfirmDeleteDialog.open()

    if (!selection.isEmpty()) {
      ILabel label = (ILabel) selection.getFirstElement();

      String msg = "Are you sure you want to delete the Label '" + label.getName() + "'?";
      ConfirmDeleteDialog dialog = new ConfirmDeleteDialog(getShell(), "Confirm Delete", "This action can not be undone", msg, null);
      if (dialog.open() == IDialogConstants.OK_ID) {

        /* Remove Label from any News containing it */
        Collection<INews> affectedNews = DynamicDAO.getDAO(INewsDAO.class).loadAll(label);
        for (INews news : affectedNews) {
          news.removeLabel(label);
View Full Code Here

Examples of org.rssowl.ui.internal.dialogs.ConfirmDialog.open()

      }
    }

    /* Create Dialog and open if confirmation required */
    ConfirmDialog dialog = new ConfirmDialog(fShell, Messages.DeleteTypesAction_CONFIRM_DELETE, Messages.DeleteTypesAction_NO_UNDO, getMessage(elements), null);
    return dialog.open() == IDialogConstants.OK_ID;
  }

  private String getMessage(List<?> elements) {

    /* One Element */
 
View Full Code Here

Examples of org.rssowl.ui.internal.dialogs.CustomWizardDialog.open()

        return DIALOG_PERSISTSIZE;
      }
    };
    dialog.setMinimumPageSize(0, 0);
    dialog.create();
    dialog.open();
  }

  /*
   * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
   */
 
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.