Examples of SWTBotLabel


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

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

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

  @Test
  public void testPasteRepoPath() throws Exception {
    clearView();
    refreshAndWait();
    final Exception[] exceptions = new Exception[1];
    final SWTBotLabel label = getOrOpenView().bot().label(
        UIText.RepositoriesView_messsageEmpty);
    Display.getDefault().syncExec(new Runnable() {

      public void run() {
        Clipboard clip = null;
View Full Code Here

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

    }
  }

  private void assertSynchronizeNoChange() {
    // 0 => title, 1 => ?, 2 => "no result" Label
    SWTBotLabel syncViewLabel = bot.viewByTitle("Synchronize").bot()
        .label(0);

    String noResultLabel = syncViewLabel.getText();
    String expected = "No changes in 'Git (" + PROJ1 + ")'.";
    if (!noResultLabel.contains(expected)) {
      syncViewLabel = bot.viewByTitle("Synchronize").bot().label(2);
      noResultLabel = syncViewLabel.getText();
      assertTrue(noResultLabel.contains(expected));
    }
  }
View Full Code Here

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

    SWTBotTreeItem tags = tree
        .expandNode(UIText.RepositoriesViewLabelProvider_TagsNodeText);
    TestUtil.getChildNode(tags, "SomeTag").select();
    sourceSelectionDialog.bot().button(IDialogConstants.OK_LABEL).click();

    SWTBotLabel sourceLabel = createBranchDialog.bot().label(3);
    assertEquals("SomeTag", sourceLabel.getText());

    createBranchDialog.bot().textWithId("BranchName")
        .setText("branch-from-tag");
    createBranchDialog.bot()
        .checkBox(UIText.CreateBranchPage_CheckoutButton).deselect();
View Full Code Here

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

    SWTBot viewBot = bot.viewByTitle("Synchronize").bot();
    @SuppressWarnings("unchecked")
    Matcher matcher = allOf(widgetOfType(Label.class),
        withRegex("No changes in .*"));

    @SuppressWarnings("unchecked")
    SWTBotLabel l = new SWTBotLabel((Label) viewBot.widget(matcher));
    assertNotNull(l);
  }
View Full Code Here

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

    SWTBot viewBot = bot.viewByTitle("Synchronize").bot();
    @SuppressWarnings("unchecked")
    Matcher matcher = allOf(widgetOfType(Label.class),
        withRegex("No changes in .*"));

    @SuppressWarnings("unchecked")
    SWTBotLabel l = new SWTBotLabel((Label) viewBot.widget(matcher));
    assertNotNull(l);
  }
View Full Code Here

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

    SWTBot viewBot = bot.viewByTitle("Synchronize").bot();
    @SuppressWarnings("unchecked")
    Matcher matcher = allOf(widgetOfType(Label.class),
        withRegex("No changes in .*"));

    @SuppressWarnings("unchecked")
    SWTBotLabel l = new SWTBotLabel((Label) viewBot.widget(matcher));
    assertNotNull(l);
  }
View Full Code Here

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

    SWTBot viewBot = bot.viewByTitle("Synchronize").bot();
    @SuppressWarnings("unchecked")
    Matcher matcher = allOf(widgetOfType(Label.class),
        withRegex("No changes in .*"));

    @SuppressWarnings("unchecked")
    SWTBotLabel l = new SWTBotLabel((Label) viewBot.widget(matcher));
    assertNotNull(l);
  }
View Full Code Here

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

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

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

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotLabel labelWithId(String key, String value, int index) {
    Matcher matcher = allOf(widgetOfType(Label.class), withId(key, value));
    return new SWTBotLabel((Label) widget(matcher, index), matcher);
  }
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.