Examples of MHandledMenuItem


Examples of org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem

    themesMenu.setContributorURI(BUNDLE_ID);
  }

  @Override
  protected void processTheme(String name, MCommand switchCommand, MParameter themeId, String iconURI) {
    MHandledMenuItem menuItem = MMenuFactory.INSTANCE.createHandledMenuItem();
    menuItem.setLabel(name);
    menuItem.setCommand(switchCommand);
    menuItem.getParameters().add(themeId);
    menuItem.setContributorURI(BUNDLE_ID);
    if (iconURI != null) {
      menuItem.setIconURI(iconURI);
    }
    themesMenu.getChildren().add(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.