Examples of SWTBotTree


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

    }


    public void setAttributeValue( String type, int number, String value )
    {
        SWTBotTree tree = bot.tree( 0 );

        // click to finish editing of value
        tree.getTreeItem( type ).click();

        tree.getTreeItem( type ).doubleClick();
        SWTBotText text = bot.text( "" );
        text.setText( value );

        // click to finish editing of value
        tree.getTreeItem( type ).click();
    }
View Full Code Here

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

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

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

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

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

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

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

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

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

   * @return a {@link SWTBotTree} with the specified <code>none</code>.
   */
  @SuppressWarnings("unchecked")
  public SWTBotTree tree(int index) {
    Matcher matcher = allOf(widgetOfType(Tree.class));
    return new SWTBotTree((Tree) widget(matcher, index), matcher);
  }
View Full Code Here

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

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

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

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

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

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

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

    {
        SWTBotView view = bot.viewByTitle( "Connections" );
        view.show();

        Tree tree = ( Tree ) bot.widget( widgetOfType( Tree.class ), view.getWidget() );
        return new SWTBotTree( tree );
    }
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.