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 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

    System.out.println("Create Roo project:" + projectName);
    System.out.println("    package prefix:" + pkgPrefix);
   
    SWTBotShell wizard = activateFileNewWizardShell("Spring Roo Project", "New Roo Project");
   
    SWTBotText projectNameTxt = bot.textWithLabel("Project name:");
    projectNameTxt.setText(projectName);
   
    SWTBotText pkgPrefixTxt = bot.textWithLabel("Top level package name:");
    pkgPrefixTxt.setText(pkgPrefix);
   
    bot.button("Next >").click();
    bot.button("Finish").click();
   
    // May take a while so long timeout value needed
View Full Code Here

    configEditor.getStyledText().setFocus();

    configEditor.quickfix("Create class 'Account'");
    bot.shell("New Class").activate();

    SWTBotText text = bot.text(1);
    assertNotNull(text);
    String str = text.getText();
    assertNotNull(str);
    assertEquals("com.test.ui", str);

    bot.button("Finish").click();
View Full Code Here

        TreeItem beanItem = root.getItem(1);
        page.setSelection(new StructuredSelection(beanItem.getData()));
      }
    });

    SWTBotText text = bot.text("myConcreteClass");
    text.setText("");
    text.pressShortcut(SWT.CTRL, ' ');

    SWTBotShell shell = bot.activeShell();
    assertTrue(shell.isOpen()); // Weak test?
  }
View Full Code Here

        TreeItem aspectItem = root.getItem(0).getItem(1);
        page.setSelection(new StructuredSelection(aspectItem.getData()));
      }
    });

    SWTBotText text = bot.text("propertyChangeTracker");
    text.setText("");
    text.pressShortcut(SWT.CTRL, ' ');

    SWTBotShell shell = bot.activeShell();
    assertTrue(shell.isOpen()); // Weak test?
  }
View Full Code Here

        TreeItem beanItem = root.getItem(1);
        page.setSelection(new StructuredSelection(beanItem.getData()));
      }
    });

    SWTBotText text = bot.text("com.test.MyConcreteClass");
    text.setText("com");
    text.pressShortcut(SWT.CTRL, ' ');

    SWTBotShell shell = bot.activeShell();
    assertTrue(shell.isOpen()); // Weak test?
  }
View Full Code Here

        TreeItem item = root.getItem(0).getItem(1).getItem(0);
        page.setSelection(new StructuredSelection(item.getData()));
      }
    });

    SWTBotText text = bot.text("setterMethod");
    text.setText("");
    text.pressShortcut(SWT.CTRL, ' ');

    SWTBotShell shell = bot.activeShell();
    assertTrue(shell.isOpen()); // Weak test?
  }
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.