Package rabbit.ui.internal.actions

Examples of rabbit.ui.internal.actions.ShowHideFilterControlAction


   * @param hideControl true to hide the control by default.
   * @return this
   */
  public CommonToolBarBuilder enableFilterControlAction(FilteredTree tree,
      boolean hideControl) {
    filterAction = new ShowHideFilterControlAction(tree, hideControl);
    return this;
  }
View Full Code Here


  @Test
  public void testRun() {
    shell.open();
   
    ShowHideFilterControlAction action = new ShowHideFilterControlAction(tree);
    assertTrue(tree.getFilterControl().getParent().isVisible());
    assertEquals(tree.getFilterControl().getParent().isVisible(), action
        .isChecked());

    action.run();
    assertFalse(tree.getFilterControl().getParent().isVisible());
    assertEquals(tree.getFilterControl().getParent().isVisible(), action
        .isChecked());
   
    action.run();
    assertTrue(tree.getFilterControl().getParent().isVisible());
    assertTrue(tree.getFilterControl().isFocusControl());
    assertEquals(tree.getFilterControl().getParent().isVisible(), action
        .isChecked());
  }
View Full Code Here

TOP

Related Classes of rabbit.ui.internal.actions.ShowHideFilterControlAction

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.