Examples of ICreateFeature


Examples of org.eclipse.graphiti.features.ICreateFeature

  private PaletteEntry createTool(ICreationToolEntry creationToolEntry) {

    if (creationToolEntry instanceof IObjectCreationToolEntry) {
      IObjectCreationToolEntry objectCreationToolEntry = (IObjectCreationToolEntry) creationToolEntry;

      ICreateFeature feat = objectCreationToolEntry.getCreateFeature();

      if (feat instanceof ICreateFeature) {
        DefaultCreationFactory cf = new DefaultCreationFactory(feat, ICreateFeature.class);
        Object template = (DND_FROM_PALETTE == true) ? cf : null;

        CombinedTemplateCreationEntry pe = new CombinedTemplateCreationEntry(feat.getCreateName(), feat.getCreateDescription(),
            template, cf, getImageDescriptor(creationToolEntry, true), getImageDescriptor(creationToolEntry, false));
        pe.setToolClass(GFCreationTool.class);

        return pe;
      }
View Full Code Here

Examples of org.eclipse.graphiti.features.ICreateFeature

        final Object o = e.createExecutableExtension("createFeature");
        if (o instanceof CustomTaskFeatureContainer) {

          CustomTaskFeatureContainer container = (CustomTaskFeatureContainer)o;
          container.setId(featureProvider, id);
          ICreateFeature cf = container.getCreateFeature(featureProvider);
          ObjectCreationToolEntry objectCreationToolEntry = new ObjectCreationToolEntry(name,
              cf.getCreateDescription(), cf.getCreateImageId(), cf.getCreateLargeImageId(), cf);
          compartmentEntry.addToolEntry(objectCreationToolEntry);

        }
      }
    } catch (Exception ex) {
View Full Code Here

Examples of org.eclipse.graphiti.features.ICreateFeature

  private void updateFeatureLists() {
   
    List<ICreateFeature> createFeaturesList = new ArrayList<ICreateFeature>();

    for (FeatureContainer container : containers) {
      ICreateFeature createFeature = container.getCreateFeature(this);
      if (createFeature != null) {
        createFeaturesList.add(createFeature);
      }
    }
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.