Package org.eclipse.graphiti.tb

Examples of org.eclipse.graphiti.tb.IContextMenuEntry


    IToolBehaviorProvider tb = getConfigurationProvider().getDiagramTypeProvider().getCurrentToolBehaviorProvider();
    IContextMenuEntry[] contextMenuEntries = tb.getContextMenu(context);

    // the last one is an add menu; lets move it to a different group
    int lastIndex = contextMenuEntries.length - 1;
    IContextMenuEntry addEntries = contextMenuEntries[lastIndex];
    addEntry(manager, addEntries, context, GEFActionConstants.GROUP_ADD, null);
    addActionToMenuIfAvailable(manager, RemoveAction.ACTION_ID, GEFActionConstants.GROUP_ADD);

    IFeatureProvider fp = getConfigurationProvider().getFeatureProvider();
    //IFeatureProvider fp = addEntries.getFeature().getFeatureProvider();
View Full Code Here


  private void addEntries(IMenuManager manager, IContextMenuEntry[] contextMenuEntries, ICustomContext context, String groupID,
      String textParentEntry) {

    for (int i = 0; i < contextMenuEntries.length; i++) {
      IContextMenuEntry cmEntry = contextMenuEntries[i];
      addEntry(manager, cmEntry, context, groupID, textParentEntry);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.graphiti.tb.IContextMenuEntry

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.