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

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


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

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

    refreshAndWait();

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


    SWTBotShell configureBranchDialog = bot
        .shell(UIText.BranchConfigurationDialog_BranchConfigurationTitle);
    assertEquals(MessageFormat.format(
        UIText.BranchConfigurationDialog_EditBranchConfigMessage,
        "configTest"), configureBranchDialog.bot().text().getText());
    assertEquals(
        "refs/heads/master",
        configureBranchDialog
            .bot()
            .comboBoxWithLabel(
View Full Code Here

    assertEquals(MessageFormat.format(
        UIText.BranchConfigurationDialog_EditBranchConfigMessage,
        "configTest"), configureBranchDialog.bot().text().getText());
    assertEquals(
        "refs/heads/master",
        configureBranchDialog
            .bot()
            .comboBoxWithLabel(
                UIText.BranchConfigurationDialog_UpstreamBranchLabel)
            .getText());
    assertEquals(
View Full Code Here

            .comboBoxWithLabel(
                UIText.BranchConfigurationDialog_UpstreamBranchLabel)
            .getText());
    assertEquals(
        "origin",
        configureBranchDialog
            .bot()
            .comboBoxWithLabel(
                UIText.BranchConfigurationDialog_RemoteLabel)
            .getText());
    assertFalse(configureBranchDialog.bot()
View Full Code Here

        configureBranchDialog
            .bot()
            .comboBoxWithLabel(
                UIText.BranchConfigurationDialog_RemoteLabel)
            .getText());
    assertFalse(configureBranchDialog.bot()
        .checkBox(UIText.BranchConfigurationDialog_RebaseLabel)
        .isChecked());

    configureBranchDialog.bot()
        .checkBox(UIText.BranchConfigurationDialog_RebaseLabel)
View Full Code Here

            .getText());
    assertFalse(configureBranchDialog.bot()
        .checkBox(UIText.BranchConfigurationDialog_RebaseLabel)
        .isChecked());

    configureBranchDialog.bot()
        .checkBox(UIText.BranchConfigurationDialog_RebaseLabel)
        .select();
    // add a listener to wait for the configuration changed event
    final AtomicBoolean changed = new AtomicBoolean();
    ConfigChangedListener listener =
View Full Code Here

        changed.set(true);
      }
    };
    ListenerHandle handle = repo.getConfig().addChangeListener(listener);
    // only now click ok
    configureBranchDialog.bot().button("OK").click();

    // cleanup behind ourselves
    handle.remove();
    if (!changed.get())
      fail("We should have received a config change event");
View Full Code Here

    ContextMenuHelper.clickContextMenu(tree, myUtil
        .getPluginLocalizedValue("ResetCommand"));

    SWTBotShell resetDialog = bot.shell(UIText.ResetCommand_WizardTitle);
    resetDialog.bot().radio(
        UIText.ResetTargetSelectionDialog_ResetTypeHardButton).click();
    resetDialog.bot().button(IDialogConstants.FINISH_LABEL).click();
    TestUtil.joinJobs(JobFamilies.RESET);

    bot.shell(UIText.ResetTargetSelectionDialog_ResetQuestion).bot()
View Full Code Here

        .getPluginLocalizedValue("ResetCommand"));

    SWTBotShell resetDialog = bot.shell(UIText.ResetCommand_WizardTitle);
    resetDialog.bot().radio(
        UIText.ResetTargetSelectionDialog_ResetTypeHardButton).click();
    resetDialog.bot().button(IDialogConstants.FINISH_LABEL).click();
    TestUtil.joinJobs(JobFamilies.RESET);

    bot.shell(UIText.ResetTargetSelectionDialog_ResetQuestion).bot()
        .button(IDialogConstants.YES_LABEL).click();
View Full Code Here

    ContextMenuHelper.clickContextMenu(tree,
        myUtil.getPluginLocalizedValue("RepoViewCreateTag.label"));
    String shellTitle = UIText.CreateTagDialog_NewTag;
    SWTBotShell createDialog = bot.shell(shellTitle).activate();
    TestUtil.joinJobs(JobFamilies.FILL_TAG_LIST);
    createDialog.bot().textWithLabel(UIText.CreateTagDialog_tagName)
        .setText(name);
    createDialog.bot()
        .styledTextWithLabel(UIText.CreateTagDialog_tagMessage)
        .setText(message);
    createDialog.bot().button(UIText.CreateTagDialog_CreateTagButton)
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.