Examples of SWTBotStyledText


Examples of net.sf.swtbot.widgets.SWTBotStyledText

   * @param labelText the label of the styled text.
   * @return a wrapper around a styled text with the specified label.
   * @throws WidgetNotFoundException if the widget is not found.
   */
  public SWTBotStyledText styledTextWithLabel(String labelText) throws WidgetNotFoundException {
    return new SWTBotStyledText(finder, labelText);
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotStyledText

   * @return the style text editor in the editor.
   * @throws WidgetNotFoundException if the styled text could not be found.
   */
  protected StyledText getEditor(final Composite composite) throws WidgetNotFoundException {
    StyledText editor = findEditor(composite);
    styledText = new SWTBotStyledText(editor);
    return editor;
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotStyledText

   * @param labelText the label of the styled text.
   * @return a wrapper around a styled text with the specified label.
   * @throws WidgetNotFoundException if the widget is not found.
   */
  public SWTBotStyledText styledTextWithLabel(String labelText) throws WidgetNotFoundException {
    return new SWTBotStyledText(finder, labelText);
  }
View Full Code Here

Examples of net.sf.swtbot.widgets.SWTBotStyledText

   * @return the style text editor in the editor.
   * @throws WidgetNotFoundException if the styled text could not be found.
   */
  protected StyledText getEditor(final Composite composite) throws WidgetNotFoundException {
    StyledText editor = findEditor(composite);
    styledText = new SWTBotStyledText(editor);
    return editor;
  }
View Full Code Here

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

   * @throws WidgetNotFoundException if the widget is <code>null</code> or widget has been disposed.
   * @since 2.0
   */
  public SWTBotEclipseEditor(IEditorReference editorReference, SWTWorkbenchBot bot) throws WidgetNotFoundException {
    super(editorReference, bot);
    this.styledText = new SWTBotStyledText((StyledText) findWidget(widgetOfType(StyledText.class)));
    this.widget = this.styledText.widget;
  }
View Full Code Here

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

   * @param bot the helper bot.
   * @param description the description of the editor part.
   */
  public SWTBotEclipseEditor(IEditorReference editorReference, SWTWorkbenchBot bot, SelfDescribing description) {
    super(editorReference, bot, description);
    this.styledText = new SWTBotStyledText((StyledText) findWidget(widgetOfType(StyledText.class)));
    this.widget = this.styledText.widget;
  }
View Full Code Here

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

   * @return a {@link SWTBotStyledText} with the specified <code>label</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotStyledText styledTextWithLabel(String label, int index) {
    Matcher matcher = allOf(widgetOfType(StyledText.class), withLabel(label));
    return new SWTBotStyledText((StyledText) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotStyledText} with the specified <code>text</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotStyledText styledText(String text, int index) {
    Matcher matcher = allOf(widgetOfType(StyledText.class), withText(text));
    return new SWTBotStyledText((StyledText) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotStyledText} with the specified <code>key/value</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotStyledText styledTextWithId(String key, String value, int index) {
    Matcher matcher = allOf(widgetOfType(StyledText.class), withId(key, value));
    return new SWTBotStyledText((StyledText) widget(matcher, index), matcher);
  }
View Full Code Here

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

   * @return a {@link SWTBotStyledText} with the specified <code>value</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotStyledText styledTextWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(StyledText.class), withId(value));
    return new SWTBotStyledText((StyledText) 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.