Package org.eclipse.graphiti.ui.internal.action

Examples of org.eclipse.graphiti.ui.internal.action.CustomAction


    String text = cmEntry.getText();
    IContextMenuEntry[] children = cmEntry.getChildren();
    if (children.length == 0) {
      IFeature feature = cmEntry.getFeature();
      if (feature instanceof ICustomFeature && feature.isAvailable(context)) {
        IAction action = new CustomAction((ICustomFeature) feature, context, getBehavior());
        if (textParentEntry != null) {
          text = textParentEntry + " " + text; //$NON-NLS-1$
        }
        action.setText(text);
        action.setDescription(cmEntry.getDescription());
        ImageDescriptor image = Activator.getDefault().getImageDescriptor(cmEntry.getIconId());
        action.setImageDescriptor(image);
        appendContributionItem(manager, groupID, new ActionContributionItem(action));
      }
    } else {
      if (cmEntry.isSubmenu()) {
View Full Code Here

TOP

Related Classes of org.eclipse.graphiti.ui.internal.action.CustomAction

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.