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

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotText


   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotText textInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Text.class), inGroup(inGroup));
    return new SWTBotText((Text) widget(matcher, index), matcher);
  }
View Full Code Here


   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotText text(int index) {
    Matcher matcher = allOf(widgetOfType(Text.class));
    return new SWTBotText((Text) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotText textWithLabelInGroup(String label, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Text.class), withLabel(label), inGroup(inGroup));
    return new SWTBotText((Text) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotText textInGroup(String text, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Text.class), withText(text), inGroup(inGroup));
    return new SWTBotText((Text) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotText textWithTooltipInGroup(String tooltip, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(Text.class), withTooltip(tooltip), inGroup(inGroup));
    return new SWTBotText((Text) widget(matcher, index), matcher);
  }
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"));
    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();
    assertEquals("newmaster", item.getNode(0).select().getText());

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

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

    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    bot.waitUntil(widgetIsEnabled(shell.bot().tree()), 60000);
    shell.bot().button(IDialogConstants.NEXT_LABEL).click();
    waitInUI();
    // for some reason textWithLabel doesn't work; 0 is path text
    SWTBotText pathText = shell.bot().text(0);
    pathText.setText(pathText.getText() + "Cloned");
    shell.bot().button(IDialogConstants.FINISH_LABEL).click();
    refreshAndWait();
    assertHasClonedRepo();
  }
View Full Code Here

    ContextMenuHelper.clickContextMenu(selectProject(), "Team", STASHES,
        UIText.StashesMenu_StashChangesActionText);

    SWTBotShell createDialog = bot
        .shell(UIText.StashCreateCommand_titleEnterCommitMessage);
    SWTBotText enterMessageText = createDialog.bot().text(0);
    String stashMessage = "stash message";
    enterMessageText.setText(stashMessage);
    createDialog.bot().button(IDialogConstants.OK_LABEL).click();

    assertEquals(originalContent, getTestFileContent());

    ContextMenuHelper.clickContextMenu(selectProject(), "Team", STASHES,
View Full Code Here

    setRemoteNameAndUri(remoteName, uri, wizard);
  }

  private void setRemoteNameAndUri(String remoteName, String uri,
      SWTBot remotePage) {
    SWTBotText remoteNameText = remotePage
        .textWithLabel(UIText.AddRemotePage_RemoteNameLabel);
    remoteNameText.setText(remoteName);
    SWTBotText uriText = remotePage
        .textWithLabel(UIText.RepositorySelectionPage_promptURI
        + ":");
    uriText.setText(uri);
  }
View Full Code Here

    else
      storeCheckBox().deselect();
  }

  public void appendToURI(String toAppend) {
    SWTBotText uri = uri();
    uri.setText(uri.getText() + toAppend);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.widgets.SWTBotText

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.