Examples of ICustomFeature


Examples of org.eclipse.graphiti.features.custom.ICustomFeature

  @Override
  public ICustomFeature getDoubleClickFeature(IDoubleClickContext context) {

   
    ICustomFeature customFeature =
        new DoubleClickFeature(getFeatureProvider());
    // canExecute() tests especially if the context contains a EClass

    if (customFeature.canExecute(context)) {
      return customFeature;
    }

    return super.getDoubleClickFeature(context);
View Full Code Here

Examples of org.eclipse.graphiti.features.custom.ICustomFeature

    // create a menu-entry in the sub-menu for each custom feature
    IFeatureProvider fp = getFeatureProvider();
    ICustomFeature[] customFeatures = fp.getCustomFeatures(context);
    for (int i = 0; i < customFeatures.length; i++) {
      ICustomFeature customFeature = customFeatures[i];
      if (customFeature.isAvailable(context)) {
        ContextMenuEntry menuEntry = new ContextMenuEntry(customFeature, context);
        entries.add(menuEntry);
      }
    }
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.