Package org.eclipse.graphiti.features.context.impl

Examples of org.eclipse.graphiti.features.context.impl.CustomContext


  @Override
  protected void addDefaultMenuGroupRest(IMenuManager manager) {
    addAlignmentSubMenu(manager, GEFActionConstants.GROUP_REST);

    PictogramElement pes[] = getBehavior().getSelectedPictogramElements();
    ICustomContext context = new CustomContext(pes);

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

    // the last one is an add menu; lets move it to a different group
View Full Code Here


    }
     *
     */
   
    // add buttons for breakpoint manipulation
    CustomContext cc = new CustomContext(new PictogramElement[] { pe });
    ICustomFeature[] cf = getFeatureProvider().getCustomFeatures(cc);
    for (ICustomFeature f : cf) {
      if (f instanceof DeleteAllEndpointBreakpointsFeature) continue;
      if (f instanceof SetEndpointBreakpointFeature) {
        if (f.isAvailable(cc)) {
View Full Code Here

      selectedElements = new PictogramElement[] {selectedElement};
    } else {
      Activator.getLogger().debug("==== TODO - could not find PictogramElement for node " + selectedNode + " probably its that the RiderOutlinePage is out of sync with the Diagram model!");
      selectedElements = editor.getSelectedPictogramElements();
    }
    CustomContext context = new CustomContext(selectedElements);
    feature.execute(context);
  }
View Full Code Here

        @Override
        public boolean canExecute(IContext context) {
          return true;
        }
      };
      CustomContext context = new CustomContext();
      execute(feature, context);
    }
  }
View Full Code Here

    editElementButton.setText("change element type"); //$NON-NLS-1$
    editElementButton.setDescription("Change the element type to another type"); //$NON-NLS-1$
    editElementButton.setIconId(PluginImage.EDIT_ICON.getImageKey());
    data.getDomainSpecificContextButtons().add(editElementButton);

    CustomContext customContext = new CustomContext();
    customContext.putProperty("org.activiti.designer.changetype.pictogram", pe);

    if (bo instanceof Task) {
      addTaskButtons(editElementButton, (Task) bo, customContext);
    } else if (bo instanceof Gateway) {
      addGatewayButtons(editElementButton, (Gateway) bo, customContext);
View Full Code Here

TOP

Related Classes of org.eclipse.graphiti.features.context.impl.CustomContext

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.