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

Examples of org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView.bot()


    touchAndSubmit("Some more changes");

    localItem.getNode(1).select();
    assertCheckoutNotAvailable(view);
    localItem.getNode(0).select();
    ContextMenuHelper.clickContextMenu(view.bot().tree(), myUtil
        .getPluginLocalizedValue("CheckoutCommand"));
    TestUtil.joinJobs(JobFamilies.CHECKOUT);
    localItem.getNode(1).select();
    refreshAndWait();
    ContextMenuHelper.clickContextMenu(view.bot().tree(), myUtil
View Full Code Here


    ContextMenuHelper.clickContextMenu(view.bot().tree(), myUtil
        .getPluginLocalizedValue("CheckoutCommand"));
    TestUtil.joinJobs(JobFamilies.CHECKOUT);
    localItem.getNode(1).select();
    refreshAndWait();
    ContextMenuHelper.clickContextMenu(view.bot().tree(), myUtil
        .getPluginLocalizedValue("RepoViewDeleteBranch.label"));
    SWTBotShell confirmPopup = bot
        .shell(UIText.UnmergedBranchDialog_Title);
    confirmPopup.activate();
    confirmPopup.bot().button(IDialogConstants.OK_LABEL).click();
View Full Code Here

    SWTBotShell confirmPopup = bot
        .shell(UIText.UnmergedBranchDialog_Title);
    confirmPopup.activate();
    confirmPopup.bot().button(IDialogConstants.OK_LABEL).click();
    refreshAndWait();
    localItem = myRepoViewUtil.getLocalBranchesItem(view.bot().tree(),
        repositoryFile);
    localItem.expand();
    assertEquals("Wrong number of children", 1, localItem.getNodes().size());
  }
View Full Code Here

        ConfigConstants.CONFIG_KEY_REBASE, false);
    assertFalse(rebase);

    SWTBotView view = getOrOpenView();

    SWTBotTreeItem localItem = myRepoViewUtil.getLocalBranchesItem(view
        .bot().tree(), clonedRepositoryFile);
    localItem.expand().getNode("configTest").select();

    ContextMenuHelper.clickContextMenuSync(view.bot().tree(),
        myUtil.getPluginLocalizedValue("ShowIn"),
View Full Code Here

    SWTBotTreeItem localItem = myRepoViewUtil.getLocalBranchesItem(view
        .bot().tree(), clonedRepositoryFile);
    localItem.expand().getNode("configTest").select();

    ContextMenuHelper.clickContextMenuSync(view.bot().tree(),
        myUtil.getPluginLocalizedValue("ShowIn"),
        "Properties");

    SWTBotView propsView = bot.viewByTitle("Properties");
    SWTBotTreeItem rootItem = propsView
View Full Code Here

    ContextMenuHelper.clickContextMenuSync(view.bot().tree(),
        myUtil.getPluginLocalizedValue("ShowIn"),
        "Properties");

    SWTBotView propsView = bot.viewByTitle("Properties");
    SWTBotTreeItem rootItem = propsView
        .bot()
        .tree()
        .getTreeItem(
            UIText.BranchPropertySource_UpstreamConfigurationCategory);
    SWTBotTreeItem rebaseItem = rootItem.expand().getNode(
View Full Code Here

    ContextMenuHelper.clickContextMenu(view.bot().tree(),
        myUtil.getPluginLocalizedValue("ShowIn"),
        "Properties");

    propsView = bot.viewByTitle("Properties");
    rootItem = propsView
        .bot()
        .tree()
        .getTreeItem(
            UIText.BranchPropertySource_UpstreamConfigurationCategory);
    rebaseItem = rootItem.expand().getNode(
View Full Code Here

    myRepoViewUtil.getRootItem(tree, repositoryFile).select();
    // the selection should be root
    assertTrue(tree.selection().get(0, 0).startsWith(REPO1));

    SWTBotView view = TestUtil.showExplorerView();
    SWTBotTree projectExplorerTree = view.bot().tree();

    SWTBotTreeItem item = getProjectItem(projectExplorerTree, PROJ1)
        .expand().getNode(FOLDER).expand().getNode(FILE1);
    view.show();
    item.doubleClick();
View Full Code Here

  }

  private void selectRepositoryNode() throws Exception {
    SWTBotView repositoriesView = TestUtil
        .showView(RepositoriesView.VIEW_ID);
    SWTBotTree tree = repositoriesView.bot().tree();

    SWTBotTreeItem repoNode = repoViewUtil
        .getRootItem(tree, repositoryFile);
    repoNode.select();
  }
View Full Code Here

    }
  }

  private void clickOnCommit() throws Exception {
    SWTBotView repoView = TestUtil.showView(RepositoriesView.VIEW_ID);
    SWTBotTree tree = repoView.bot().tree();
    TestUtil.waitUntilTreeHasNodeContainsText(bot, tree, REPO1, 10000);
    tree.getAllItems()[0].contextMenu("Commit...").click();
  }
}
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.