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

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


    createPage.activate();
    // getting text with label doesn't work
    createPage.bot().textWithId("BranchName").setText("newLocal");
    createPage.bot().checkBox(UIText.CreateBranchPage_CheckoutButton)
        .select();
    createPage.bot().button(IDialogConstants.FINISH_LABEL).click();
    TestUtil.joinJobs(JobFamilies.CHECKOUT);
    refreshAndWait();

    localItem = myRepoViewUtil.getLocalBranchesItem(view.bot().tree(),
        repositoryFile);
View Full Code Here


    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();
    refreshAndWait();
    localItem = myRepoViewUtil.getLocalBranchesItem(view.bot().tree(),
        repositoryFile);
    localItem.expand();
    assertEquals("Wrong number of children", 1, localItem.getNodes().size());
View Full Code Here

    item.getNode("origin/stable").select();
    ContextMenuHelper.clickContextMenu(tree, myUtil
        .getPluginLocalizedValue("CreateBranchCommand"));
    SWTBotShell shell = bot.shell(UIText.CreateBranchWizard_NewBranchTitle);
    shell.activate();
    assertEquals("stable", shell.bot().textWithId("BranchName").getText());
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    item = myRepoViewUtil.getLocalBranchesItem(tree, clonedRepositoryFile)
        .expand();
View Full Code Here

    ContextMenuHelper.clickContextMenu(tree, myUtil
        .getPluginLocalizedValue("CreateBranchCommand"));
    SWTBotShell shell = bot.shell(UIText.CreateBranchWizard_NewBranchTitle);
    shell.activate();
    assertEquals("stable", shell.bot().textWithId("BranchName").getText());
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    item = myRepoViewUtil.getLocalBranchesItem(tree, clonedRepositoryFile)
        .expand();

    children = item.getNodes();
View Full Code Here

        myUtil.getPluginLocalizedValue("CreateBranchCommand"));

    SWTBotShell createPage = bot
        .shell(UIText.CreateBranchWizard_NewBranchTitle);
    createPage.activate();
    assertEquals("Wrong suggested branch name", "stable", createPage.bot()
        .textWithId("BranchName").getText());
    createPage.close();
    // checkout master again

    myRepoViewUtil.getLocalBranchesItem(tree, clonedRepositoryFile)
View Full Code Here

        .getPluginLocalizedValue("RepoViewRenameBranch.label"));
    refreshAndWait();

    SWTBotShell renameDialog = bot
        .shell(UIText.BranchRenameDialog_WindowTitle);
    SWTBotText newBranchNameText = renameDialog.bot().textWithLabel(UIText.BranchRenameDialog_NewNameLabel);
    newBranchNameText.setText("invalid~name");

    renameDialog.bot().text(" " + // the text is now in the error message, and the MessageAreaDialog seems to add a space
        NLS.bind(UIText.ValidationUtils_InvalidRefNameMessage,
            "refs/heads/invalid~name"));
View Full Code Here

    SWTBotShell renameDialog = bot
        .shell(UIText.BranchRenameDialog_WindowTitle);
    SWTBotText newBranchNameText = renameDialog.bot().textWithLabel(UIText.BranchRenameDialog_NewNameLabel);
    newBranchNameText.setText("invalid~name");

    renameDialog.bot().text(" " + // the text is now in the error message, and the MessageAreaDialog seems to add a space
        NLS.bind(UIText.ValidationUtils_InvalidRefNameMessage,
            "refs/heads/invalid~name"));
    assertFalse(renameDialog.bot().button(IDialogConstants.OK_LABEL)
        .isEnabled());
    newBranchNameText.setText("newmaster");
View Full Code Here

    newBranchNameText.setText("invalid~name");

    renameDialog.bot().text(" " + // the text is now in the error message, and the MessageAreaDialog seems to add a space
        NLS.bind(UIText.ValidationUtils_InvalidRefNameMessage,
            "refs/heads/invalid~name"));
    assertFalse(renameDialog.bot().button(IDialogConstants.OK_LABEL)
        .isEnabled());
    newBranchNameText.setText("newmaster");
    renameDialog.bot().button(IDialogConstants.OK_LABEL).click();

    refreshAndWait();
View Full Code Here

        NLS.bind(UIText.ValidationUtils_InvalidRefNameMessage,
            "refs/heads/invalid~name"));
    assertFalse(renameDialog.bot().button(IDialogConstants.OK_LABEL)
        .isEnabled());
    newBranchNameText.setText("newmaster");
    renameDialog.bot().button(IDialogConstants.OK_LABEL).click();

    refreshAndWait();

    item = myRepoViewUtil.getLocalBranchesItem(tree, clonedRepositoryFile)
        .expand();
View Full Code Here

    ContextMenuHelper.clickContextMenu(tree, myUtil
        .getPluginLocalizedValue("RepoViewRenameBranch.label"));
    refreshAndWait();

    renameDialog = bot.shell(UIText.BranchRenameDialog_WindowTitle);
    newBranchNameText = renameDialog.bot().text(0);

    newBranchNameText.setText("master");
    renameDialog.bot().button(IDialogConstants.OK_LABEL).click();

    refreshAndWait();
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.