Examples of MHandledToolItem


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

    topBar.getChildren().add(toolBar);
  }

  @Override
  protected void processTheme(String name, MCommand switchCommand, MParameter themeId, String iconURI) {
    MHandledToolItem toolItem = MMenuFactory.INSTANCE.createHandledToolItem();
    toolItem.setTooltip(name);
    toolItem.setCommand(switchCommand);
    toolItem.getParameters().add(themeId);
    if (iconURI != null) {
      toolItem.setIconURI(iconURI);
    }
    toolBar.getChildren().add(toolItem);
  }
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.