Package org.eclipse.swtbot.swt.finder.results

Examples of org.eclipse.swtbot.swt.finder.results.VoidResult


    }


    private void expand( final SWTBotTreeItem entry, boolean wait, final String nextNode )
    {
        UIThreadRunnable.asyncExec( bot.getDisplay(), new VoidResult()
        {
            public void run()
            {
                entry.expand();
            }
View Full Code Here


   * @param proposalTable the table containing the quickfix.
   * @param proposalIndex the index of the quickfix.
   */
  private void selectProposal(final SWTBotTable proposalTable, final int proposalIndex) {
    log.debug(MessageFormat.format("Trying to select proposal with index {0}", proposalIndex)); //$NON-NLS-1$
    UIThreadRunnable.asyncExec(new VoidResult() {
      public void run() {
        Table table = proposalTable.widget;
        log.debug(MessageFormat.format("Selecting row [{0}] {1} in {2}", proposalIndex, table.getItem(proposalIndex).getText(), //$NON-NLS-1$
            table));
        table.setSelection(proposalIndex);
View Full Code Here

    invokeAction("ContentAssistProposal");
  }

  private void invokeAction(final String actionId) {
    final IAction action = ((ITextEditor) partReference.getEditor(false)).getAction(actionId);
    syncExec(new VoidResult() {
      public void run() {
        log.debug(MessageFormat.format("Activating action with id {0}", actionId));
        action.run();
      }
    });
View Full Code Here

  /**
   * Close the partReference.
   */
  public void close() {
    UIThreadRunnable.syncExec(new VoidResult() {
      public void run() {
        IViewReference viewReference = (IViewReference) partReference;
        viewReference.getPage().hideView(viewReference);
      }
    });
View Full Code Here

  /**
   * Shows the part if it is visible.
   */
  public void show() {
    UIThreadRunnable.syncExec(new VoidResult() {
      public void run() {
        try {
          partReference.getPage().activate(partReference.getPart(true));
          partReference.getPage().showView(partReference.getId());
        } catch (PartInitException e) {
View Full Code Here

  public SWTBotView(IViewReference partReference, SWTEclipseBot bot) {
    super(partReference, bot);
  }

  public void setFocus() {
    syncExec(new VoidResult() {
      public void run() {
        ((Control) getWidget()).setFocus();
      }
    });
  }
View Full Code Here

   *
   * @param quickFixTable the table containing the quickfix
   * @param quickFixIndex the index of the quickfix.
   */
  protected void applyQuickFix(final SWTBotTable quickFixTable, final int quickFixIndex) {
    UIThreadRunnable.asyncExec(new VoidResult() {
      public void run() {
        Table table = quickFixTable.widget;
        log.debug(MessageFormat.format("Selecting row [{0}] {1} in {2}", quickFixIndex, table.getItem(quickFixIndex).getText(), //$NON-NLS-1$
            table));
        table.setSelection(quickFixIndex);
View Full Code Here

    save();
    close();
  }

  public void close() {
    UIThreadRunnable.syncExec(new VoidResult() {
      public void run() {
        partReference.getPage().closeEditor(partReference.getEditor(false), false);
      }
    });
  }
View Full Code Here

  /**
   * Save the editor.
   */
  public void save() {
    UIThreadRunnable.syncExec(new VoidResult() {
      public void run() {
        partReference.getEditor(false).doSave(null);
      }
    });
  }
View Full Code Here

  /**
   * Shows the editor if it is visible.
   */
  public void show() {
    UIThreadRunnable.syncExec(new VoidResult() {
      public void run() {
        IEditorPart editor = partReference.getEditor(true);
        partReference.getPage().activate(editor);
      }
    });
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.results.VoidResult

Copyright © 2018 www.massapicom. 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.