Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.MenuItem.notifyListeners()


  @Test
  public void clicksMenuItem() throws Exception {
    List<MenuItem> findControls = menuFinder.findMenus(any(MenuItem.class));
    MenuItem menuItem = findControls.get(1);
    try {
      menuItem.notifyListeners(SWT.Selection, null);
      fail("Expecting an SWTException");
    } catch (SWTException e) {
      pass();
    }
    assertText("&New Contact...  Ctrl+N", menuItem);
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.