Package org.eclipse.graphiti.features.custom

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


    // 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

Related Classes of org.eclipse.graphiti.features.custom.ICustomFeature

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.