Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotShell.bot()


    newPath = new Path(getTestDirectory().getPath()).append("bare").append(
        "NewBareRepository");
    shell.bot().textWithLabel(UIText.CreateRepositoryPage_DirectoryLabel)
        .setText(newPath.toOSString());
    shell.bot().checkBox(UIText.CreateRepositoryPage_BareCheckbox).select();
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    repoFile = newPath.toFile();
    myRepoViewUtil.getRootItem(getOrOpenView().bot().tree(), repoFile);
    assertTrue(myRepoViewUtil.lookupRepository(repoFile).isBare());
  }
View Full Code Here


        .click();

    SWTBotShell shell = bot
        .shell(UIText.RepositorySearchDialog_AddGitRepositories);

    shell.bot().checkBox(UIText.RepositorySearchDialog_DeepSearch_button)
        .deselect();

    shell.bot().textWithLabel(UIText.RepositorySearchDialog_directory)
        .setText(getTestDirectory().getPath());
View Full Code Here

        .shell(UIText.RepositorySearchDialog_AddGitRepositories);

    shell.bot().checkBox(UIText.RepositorySearchDialog_DeepSearch_button)
        .deselect();

    shell.bot().textWithLabel(UIText.RepositorySearchDialog_directory)
        .setText(getTestDirectory().getPath());

    shell.bot().button(UIText.RepositorySearchDialog_Search).click();

    int max = 5000;
View Full Code Here

        .deselect();

    shell.bot().textWithLabel(UIText.RepositorySearchDialog_directory)
        .setText(getTestDirectory().getPath());

    shell.bot().button(UIText.RepositorySearchDialog_Search).click();

    int max = 5000;
    int slept = 0;
    while (ModalContext.getModalLevel() > 0 && slept < max) {
      Thread.sleep(100);
View Full Code Here

    while (ModalContext.getModalLevel() > 0 && slept < max) {
      Thread.sleep(100);
      slept += 100;
    }

    TestUtil.waitUntilTreeHasNodeContainsText(shell.bot(), shell.bot()
        .tree(), "BareRepository1", 10000);
    TestUtil.waitUntilTreeHasNodeContainsText(shell.bot(), shell.bot()
        .tree(), "BareRepository2", 10000);
  }
View Full Code Here

    while (ModalContext.getModalLevel() > 0 && slept < max) {
      Thread.sleep(100);
      slept += 100;
    }

    TestUtil.waitUntilTreeHasNodeContainsText(shell.bot(), shell.bot()
        .tree(), "BareRepository1", 10000);
    TestUtil.waitUntilTreeHasNodeContainsText(shell.bot(), shell.bot()
        .tree(), "BareRepository2", 10000);
  }
View Full Code Here

      slept += 100;
    }

    TestUtil.waitUntilTreeHasNodeContainsText(shell.bot(), shell.bot()
        .tree(), "BareRepository1", 10000);
    TestUtil.waitUntilTreeHasNodeContainsText(shell.bot(), shell.bot()
        .tree(), "BareRepository2", 10000);
  }

  private void assertHasClonedRepo() throws Exception {
    final SWTBotTree tree = getOrOpenView().bot().tree();
View Full Code Here

      slept += 100;
    }

    TestUtil.waitUntilTreeHasNodeContainsText(shell.bot(), shell.bot()
        .tree(), "BareRepository1", 10000);
    TestUtil.waitUntilTreeHasNodeContainsText(shell.bot(), shell.bot()
        .tree(), "BareRepository2", 10000);
  }

  private void assertHasClonedRepo() throws Exception {
    final SWTBotTree tree = getOrOpenView().bot().tree();
View Full Code Here

    String dialogTitle = NLS.bind(UIText.PushResultDialog_title,
        destinationString);

    // first time: expect new branch
    SWTBotShell confirmed = bot.shell(dialogTitle);
    SWTBotTreeItem[] treeItems = confirmed.bot().tree().getAllItems();
    boolean newBranch = false;
    for (SWTBotTreeItem item : treeItems) {
      newBranch = item.getText().contains(
          UIText.PushResultTable_statusOkNewBranch);
      if (newBranch)
View Full Code Here

    selectNode(tree, useRemote, false);

    runPush(tree);

    confirmed = bot.shell(dialogTitle);
    treeItems = confirmed.bot().tree().getAllItems();
    boolean uptodate = false;
    for (SWTBotTreeItem item : treeItems) {
      uptodate = item.getText().contains(
          UIText.PushResultTable_statusUpToDate);
      if (uptodate)
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.