Package org.eclipse.graphiti.palette.impl

Examples of org.eclipse.graphiti.palette.impl.ObjectCreationToolEntry


    IPaletteCompartmentEntry[] superCompartments = super.getPalette();
    for (int i = 1; i < superCompartments.length; i++) {
      IPaletteCompartmentEntry entry = superCompartments[i];
      for (IToolEntry toolEntry : entry.getToolEntries()) {
        if (toolEntry instanceof ObjectCreationToolEntry) {
          ObjectCreationToolEntry octe = (ObjectCreationToolEntry) toolEntry;
          if (octe.getCreateFeature() instanceof PaletteCategoryItemProvider) {
            PaletteCategoryItemProvider pcit = (PaletteCategoryItemProvider)octe.getCreateFeature();
            switch (pcit.getCategoryType()) {
            case ENDPOINTS:      compartmentEntryEndpoints.addToolEntry(toolEntry);
            break;
            case ROUTING:      compartmentEntryRouting.addToolEntry(toolEntry);
            break;
View Full Code Here


    List<ICreateFeature> tools = Arrays.asList(featureProvider.getCreateFeatures());

    for (ICreateFeature cf : tools) {
      EClass feature = FeatureMap.getElement(cf);
      if (pref.isEnabled(feature) && neededEntries.contains(cf.getClass())) {
        ObjectCreationToolEntry objectCreationToolEntry = new ObjectCreationToolEntry(cf.getCreateName(),
            cf.getCreateDescription(), cf.getCreateImageId(), cf.getCreateLargeImageId(), cf);
        compartmentEntry.addToolEntry(objectCreationToolEntry);
      }
    }
  }
View Full Code Here

        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);

        }
      }
View Full Code Here

      final IPaletteCompartmentEntry paletteCompartmentEntry = new PaletteCompartmentEntry(drawer.getKey(), null);

      for (final CustomServiceTaskContext currentDrawerItem : drawer.getValue()) {
        final CreateCustomServiceTaskFeature feature = new CreateCustomServiceTaskFeature(getFeatureProvider(), currentDrawerItem.getServiceTask().getName(),
                currentDrawerItem.getServiceTask().getDescription(), currentDrawerItem.getServiceTask().getClass().getCanonicalName());
        final IToolEntry entry = new ObjectCreationToolEntry(currentDrawerItem.getServiceTask().getName(), currentDrawerItem.getServiceTask().getDescription(),
                currentDrawerItem.getSmallImageKey(), null, feature);
        paletteCompartmentEntry.getToolEntries().add(entry);
      }
      ret.add(paletteCompartmentEntry);
    }
View Full Code Here

        if (disabledPaletteEntries.contains(PaletteEntry.ALL)) {
          entryIterator.remove();
        } else {
          if (toolEntry instanceof ObjectCreationToolEntry) {
            final ObjectCreationToolEntry objToolEntry = (ObjectCreationToolEntry) toolEntry;
            if (toolMapping.containsKey(objToolEntry.getCreateFeature().getClass())) {
              if (disabledPaletteEntries.contains(toolMapping.get(objToolEntry.getCreateFeature().getClass()))) {
                entryIterator.remove();
              }
            }
          }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.graphiti.palette.impl.ObjectCreationToolEntry

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.