Examples of DropDownAction


Examples of rabbit.ui.internal.actions.DropDownAction

   * @return this
   * @see TreeViewer#expandAll()
   * @see TreeViewer#collapseAll()
   */
  public CommonToolBarBuilder enableTreeAction(TreeViewer viewer) {
    treeAction = new DropDownAction(new CollapseAllAction(viewer),
        new ExpandAllAction(viewer));
    return this;
  }
View Full Code Here

Examples of rabbit.ui.internal.actions.DropDownAction

  @Test
  public void testConstructor_defaultAction() {
    IAction action = new Action() {
    };
    assertSame(action, new DropDownAction("text", SharedImages.BRUSH, action)
        .getDefaultAction());
  }
View Full Code Here

Examples of rabbit.ui.internal.actions.DropDownAction

        .getDefaultAction());
  }

  @Test(expected = NullPointerException.class)
  public void testConstructor_defaultAction_null() {
    new DropDownAction("text", SharedImages.BRUSH, null);
  }
View Full Code Here

Examples of rabbit.ui.internal.actions.DropDownAction

  }

  @Test
  public void testConstructor_image() {
    ImageDescriptor image = SharedImages.BRUSH;
    assertEquals(image, new DropDownAction(null, image, new Action() {
    }).getImageDescriptor());
  }
View Full Code Here

Examples of rabbit.ui.internal.actions.DropDownAction

  @Test
  public void testConstructor_menuItems() {
    IAction[] actions = new IAction[] { new Action() {
    }, new Action() {
    } };
    assertArrayEquals(actions, new DropDownAction(null, null, new Action() {
    }, actions).getMenuItemActions());
  }
View Full Code Here

Examples of rabbit.ui.internal.actions.DropDownAction

  }

  @Test
  public void testConstructor_text() {
    String text = "adfolij";
    assertEquals(text, new DropDownAction(text, null, new Action() {
    }).getText());
  }
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.