Package org.eclipse.gef.palette

Examples of org.eclipse.gef.palette.PaletteDrawer


  /**
   * Creates "Links" palette tool group
   * @generated
   */
  private PaletteContainer createLinks2Group() {
    PaletteDrawer paletteContainer = new PaletteDrawer(
        Messages.Links2Group_title);
    paletteContainer.setId("createLinks2Group"); //$NON-NLS-1$
    paletteContainer.setDescription(Messages.Links2Group_desc);
    paletteContainer.add(createMandatoryRelation1CreationTool());
    paletteContainer.add(createOptionalRelation2CreationTool());
    paletteContainer.add(createCaseRelation3CreationTool());
    paletteContainer.add(createRequireRelation4CreationTool());
    paletteContainer.add(createExcludesRelation5CreationTool());
    return paletteContainer;
  }
View Full Code Here


  /**
   * Creates "Nodes" palette tool group
   * @generated
   */
  private PaletteContainer createNodes1Group() {
    PaletteDrawer paletteContainer = new PaletteDrawer(
        Messages.Nodes1Group_title);
    paletteContainer.setId("createNodes1Group"); //$NON-NLS-1$
    paletteContainer.setDescription(Messages.Nodes1Group_desc);
    paletteContainer.add(createFeatureNode1CreationTool());
    paletteContainer.add(createExclusiveCaseRelationNode2CreationTool());
    paletteContainer.add(createCaseOrRelationNode3CreationTool());
    return paletteContainer;
  }
View Full Code Here

  /**
   * Creates "Links" palette tool group
   * @generated
   */
  private PaletteContainer createLinks2Group() {
    PaletteDrawer paletteContainer = new PaletteDrawer(
        Messages.Links2Group_title);
    paletteContainer.setId("createLinks2Group"); //$NON-NLS-1$
    paletteContainer.setDescription(Messages.Links2Group_desc);
    paletteContainer.add(createMandatoryRelation1CreationTool());
    paletteContainer.add(createOptionalRelation2CreationTool());
    paletteContainer.add(createCaseRelation3CreationTool());
    paletteContainer.add(createRequireRelation4CreationTool());
    paletteContainer.add(createExcludesRelation5CreationTool());
    return paletteContainer;
  }
View Full Code Here

            try {
                ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
                ClassLoader newLoader = ProjectClassLoader.getProjectClassLoader(javaProject);
                try {
                    Thread.currentThread().setContextClassLoader(newLoader);
                    PaletteDrawer drawer = (PaletteDrawer) getPaletteRoot().getChildren().get(2);
                    List<CombinedTemplateCreationEntry> entries = new ArrayList<CombinedTemplateCreationEntry>();
                    try {
                        for (final WorkDefinition workDefinition: WorkItemDefinitions.getWorkDefinitions(file).values()) {
                            final String label;
                            String description = workDefinition.getName();
                            String icon = null;
                            if (workDefinition instanceof WorkDefinitionExtension) {
                                WorkDefinitionExtension extension = (WorkDefinitionExtension) workDefinition;
                                label = extension.getDisplayName();
                                description = extension.getExplanationText();
                                icon = extension.getIcon();
                            } else {
                                label = workDefinition.getName();
                            }

                            URL iconUrl = null;
                            if (icon != null) {
                                iconUrl = newLoader.getResource(icon);
                            }
                            if (iconUrl == null) {
                                iconUrl = DroolsEclipsePlugin.getDefault().getBundle().getEntry("icons/action.gif");
                            }
                            CombinedTemplateCreationEntry combined = new CombinedTemplateCreationEntry(
                                label,
                                description,
                                WorkItemWrapper.class,
                                new SimpleFactory(WorkItemWrapper.class) {
                                    public Object getNewObject() {
                                        WorkItemWrapper workItemWrapper = (WorkItemWrapper) super.getNewObject();
                                        workItemWrapper.setName(label);
                                        workItemWrapper.setWorkDefinition(workDefinition);
                                        return workItemWrapper;
                                    }
                                },
                                ImageDescriptor.createFromURL(iconUrl),
                                ImageDescriptor.createFromURL(iconUrl)
                            );
                            entries.add(combined);
                        }
                    } catch (Throwable t) {
                        DroolsEclipsePlugin.log(t);
                        MessageDialog.openError(
                            getSite().getShell(), "Parsing work item definitions", t.getMessage());
                    }
                    drawer.setChildren(entries);
                } finally {
                    Thread.currentThread().setContextClassLoader(oldLoader);
                }
            } catch (Exception e) {
                DroolsEclipsePlugin.log(e);
View Full Code Here

  }

  @Override
  protected List<PaletteDrawer> createComponentDrawers() {
    List<PaletteDrawer> categories = new ArrayList<PaletteDrawer>();
    PaletteDrawer drawer = new PaletteDrawer(Messages.WebFlowEditorPaletteFactory_STATE_PALETTE_TITLE);
    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();

    CombinedTemplateCreationEntry entry = new CombinedTemplateCreationEntry(
        WebFlowSchemaConstants.ELEM_ACTION_STATE,
        Messages.WebFlowEditorPaletteFactory_ACTION_STATE_COMPONENT_DESCRIPTION,
        new ModelElementCreationFactory(ActionStateModelElement.class, getDiagram()),
        WebFlowImages.ACTION_SMALL, WebFlowImages.ACTION);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(WebFlowSchemaConstants.ELEM_DECISION_STATE,
        Messages.WebFlowEditorPaletteFactory_DECISION_STATE_COMPONENT_DESCRIPTION,
        new ModelElementCreationFactory(DecisionStateModelElement.class, getDiagram()),
        WebFlowImages.DECISION_SMALL, WebFlowImages.DECISION);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(WebFlowSchemaConstants.ELEM_END_STATE,
        Messages.WebFlowEditorPaletteFactory_END_STATE_COMPONENT_DESCRIPTION, new ModelElementCreationFactory(
            EndStateModelElement.class, getDiagram()), WebFlowImages.END_SMALL, WebFlowImages.END);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(WebFlowSchemaConstants.ELEM_SUBFLOW_STATE,
        Messages.WebFlowEditorPaletteFactory_SUBFLOW_STATE_COMPONENT_DESCRIPTION,
        new ModelElementCreationFactory(SubflowStateModelElement.class, getDiagram()),
        WebFlowImages.SUBFLOW_SMALL, WebFlowImages.SUBFLOW);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(WebFlowSchemaConstants.ELEM_VIEW_STATE,
        Messages.WebFlowEditorPaletteFactory_VIEW_STATE_COMPONENT_DESCRIPTION, new ModelElementCreationFactory(
            ViewStateModelElement.class, getDiagram()), WebFlowImages.VIEW_SMALL, WebFlowImages.VIEW);
    entries.add(entry);

    drawer.addAll(entries);
    categories.add(drawer);
    return categories;
  }
View Full Code Here

* @author Leo Dos Santos
*/
public class IntMongoDbPaletteFactory implements IPaletteFactory {

  public PaletteDrawer createPaletteDrawer(AbstractConfigGraphDiagram diagram, String namespaceUri) {
    PaletteDrawer drawer = new PaletteDrawer("", IntegrationImages.BADGE_SI_MONGODB); //$NON-NLS-1$
    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();

    CombinedTemplateCreationEntry entry = new CombinedTemplateCreationEntry(
        IntMongoDbSchemaConstants.ELEM_INBOUND_CHANNEL_ADAPTER, Messages.IntMongoDbPaletteFactory_INBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION,
        new ModelElementCreationFactory(InboundChannelAdapterModelElement.class, diagram, namespaceUri),
        IntegrationImages.INBOUND_ADAPTER_SMALL, IntegrationImages.INBOUND_ADAPTER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(IntMongoDbSchemaConstants.ELEM_OUTBOUND_CHANNEL_ADAPTER,
        Messages.IntMongoDbPaletteFactory_OUTBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION, new ModelElementCreationFactory(
            OutboundChannelAdapterModelElement.class, diagram, namespaceUri),
        IntegrationImages.OUTBOUND_ADAPTER_SMALL, IntegrationImages.OUTBOUND_ADAPTER);
    entries.add(entry);

    drawer.addAll(entries);
    return drawer;
  }
View Full Code Here

* @author Leo Dos Santos
*/
public class IntEventPaletteFactory implements IPaletteFactory {

  public PaletteDrawer createPaletteDrawer(AbstractConfigGraphDiagram diagram, String namespaceUri) {
    PaletteDrawer drawer = new PaletteDrawer("", IntegrationImages.BADGE_SI_EVENT); //$NON-NLS-1$
    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();

    CombinedTemplateCreationEntry entry = new CombinedTemplateCreationEntry(
        IntEventSchemaConstants.ELEM_INBOUND_CHANNEL_ADAPTER,
        Messages.getString("IntEventPaletteFactory.INBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(InboundChannelAdapterModelElement.class, diagram, namespaceUri),
        IntegrationImages.INBOUND_ADAPTER_SMALL, IntegrationImages.INBOUND_ADAPTER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntEventSchemaConstants.ELEM_OUTBOUND_CHANNEL_ADAPTER,
        Messages.getString("IntEventPaletteFactory.OUTBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            OutboundChannelAdapterModelElement.class, diagram, namespaceUri),
        IntegrationImages.OUTBOUND_ADAPTER_SMALL, IntegrationImages.OUTBOUND_ADAPTER);
    entries.add(entry);

    drawer.addAll(entries);
    return drawer;
  }
View Full Code Here

* @author Leo Dos Santos
*/
public class IntFtpPaletteFactory implements IPaletteFactory {

  public PaletteDrawer createPaletteDrawer(AbstractConfigGraphDiagram diagram, String namespaceUri) {
    PaletteDrawer drawer = new PaletteDrawer("", IntegrationImages.BADGE_SI_FTP); //$NON-NLS-1$
    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();

    CombinedTemplateCreationEntry entry = new CombinedTemplateCreationEntry(
        IntFtpSchemaConstants.ELEM_INBOUND_CHANNEL_ADAPTER,
        Messages.IntFtpPaletteFactory_INBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION,
        new ModelElementCreationFactory(InboundChannelAdapterModelElement.class, diagram, namespaceUri),
        IntegrationImages.INBOUND_ADAPTER_SMALL, IntegrationImages.INBOUND_ADAPTER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(IntFtpSchemaConstants.ELEM_OUTBOUND_CHANNEL_ADAPTER,
        Messages.IntFtpPaletteFactory_OUTBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION,
        new ModelElementCreationFactory(OutboundChannelAdapterModelElement.class, diagram, namespaceUri),
        IntegrationImages.OUTBOUND_ADAPTER_SMALL, IntegrationImages.OUTBOUND_ADAPTER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(IntFtpSchemaConstants.ELEM_OUTBOUND_GATEWAY,
        Messages.IntFtpPaletteFactory_OUTBOUND_GATEWAY_COMPONENT_DESCRIPTION, new ModelElementCreationFactory(
            OutboundGatewayModelElement.class, diagram, namespaceUri),
        IntegrationImages.OUTBOUND_GATEWAY_SMALL, IntegrationImages.OUTBOUND_GATEWAY);

    drawer.addAll(entries);
    return drawer;
  }
View Full Code Here

    entries.add(tool);
    return entries;
  }

  private PaletteDrawer createMessageRoutingDrawer() {
    PaletteDrawer drawer = new PaletteDrawer(
        Messages.getString("IntegrationEditorPaletteFactory.ROUTING_PALETTE_TITLE"), IntegrationImages.BADGE_SI); //$NON-NLS-1$
    drawer.setInitialState(PaletteDrawer.INITIAL_STATE_CLOSED);
    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();

    CombinedTemplateCreationEntry entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_AGGREGATOR,
        Messages.getString("IntegrationEditorPaletteFactory.AGGREGATOR_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(AggregatorModelElement.class, getDiagram()),
        IntegrationImages.AGGREGATOR_SMALL, IntegrationImages.AGGREGATOR);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_BRIDGE,
        Messages.getString("IntegrationEditorPaletteFactory.BRIDGE_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(BridgeModelElement.class, getDiagram()),
        IntegrationImages.BRIDGE_SMALL, IntegrationImages.BRIDGE);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_CONTROL_BUS,
        Messages.getString("IntegrationEditorPaletteFactory.CONTROL_BUS_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory(ControlBusModelElement.class, //$NON-NLS-1$
            getDiagram()), IntegrationImages.CONTROL_BUS_SMALL, IntegrationImages.CONTROL_BUS);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_DELAYER,
        Messages.getString("IntegrationEditorPaletteFactory.DELAYER_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(DelayerModelElement.class, getDiagram()),
        IntegrationImages.DELAYER_SMALL, IntegrationImages.DELAYER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_EXCEPTION_TYPE_ROUTER,
        Messages.getString("IntegrationEditorPaletteFactory.EXCEPTION_TYPE_ROUTER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            ExceptionTypeRouterModelElement.class, getDiagram()), IntegrationImages.EXCEPTION_ROUTER_SMALL,
        IntegrationImages.EXCEPTION_ROUTER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_FILTER,
        Messages.getString("IntegrationEditorPaletteFactory.FILTER_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(FilterModelElement.class, getDiagram()),
        IntegrationImages.FILTER_SMALL, IntegrationImages.FILTER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_HEADER_FILTER,
        Messages.getString("IntegrationEditorPaletteFactory.HEADER_FILTER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory(HeaderFilterModelElement.class, //$NON-NLS-1$
            getDiagram()), IntegrationImages.CONTENT_FILTER_SMALL, IntegrationImages.CONTENT_FILTER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_HEADER_VALUE_ROUTER,
        Messages.getString("IntegrationEditorPaletteFactory.HEADER_VALUE_ROUTER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            HeaderValueRouterModelElement.class, getDiagram()), IntegrationImages.ROUTER_SMALL,
        IntegrationImages.ROUTER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_PAYLOAD_TYPE_ROUTER,
        Messages.getString("IntegrationEditorPaletteFactory.PAYLOAD_TYPE_ROUTER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            PayloadTypeRouterModelElement.class, getDiagram()), IntegrationImages.ROUTER_SMALL,
        IntegrationImages.ROUTER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_ROUTER,
        Messages.getString("IntegrationEditorPaletteFactory.ROUTER_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(RouterModelElement.class, getDiagram()),
        IntegrationImages.ROUTER_SMALL, IntegrationImages.ROUTER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_RECIPIENT_LIST_ROUTER,
        Messages.getString("IntegrationEditorPaletteFactory.RECIPIENT_LIST_ROUTER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            RecipientListRouterModelElement.class, getDiagram()), IntegrationImages.RECIPIENT_LIST_SMALL,
        IntegrationImages.RECIPIENT_LIST);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_RESEQUENCER,
        Messages.getString("IntegrationEditorPaletteFactory.RESEQUENCER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory(ResequencerModelElement.class, //$NON-NLS-1$
            getDiagram()), IntegrationImages.RESEQUENCER_SMALL, IntegrationImages.RESEQUENCER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_SPLITTER,
        Messages.getString("IntegrationEditorPaletteFactory.SPLITTER_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(SplitterModelElement.class, getDiagram()),
        IntegrationImages.SPLITTER_SMALL, IntegrationImages.SPLITTER);
    entries.add(entry);

    drawer.addAll(entries);
    return drawer;
  }
View Full Code Here

    drawer.addAll(entries);
    return drawer;
  }

  private PaletteDrawer createMessageTransformationDrawer() {
    PaletteDrawer drawer = new PaletteDrawer(
        Messages.getString("IntegrationEditorPaletteFactory.TRANSFORMATION_PALETTE_TITLE"), IntegrationImages.BADGE_SI); //$NON-NLS-1$
    drawer.setInitialState(PaletteDrawer.INITIAL_STATE_CLOSED);
    List<PaletteEntry> entries = new ArrayList<PaletteEntry>();

    CombinedTemplateCreationEntry entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_CLAIM_CHECK_IN,
        Messages.getString("IntegrationEditorPaletteFactory.CLAIM_CHECK_IN_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(ClaimCheckInModelElement.class, getDiagram()),
        IntegrationImages.CLAIM_CHECK_SMALL, IntegrationImages.CLAIM_CHECK);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_CLAIM_CHECK_OUT,
        Messages.getString("IntegrationEditorPaletteFactory.CLAIM_CHECK_OUT_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory(ClaimCheckOutModelElement.class, //$NON-NLS-1$
            getDiagram()), IntegrationImages.CLAIM_CHECK_SMALL, IntegrationImages.CLAIM_CHECK);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_ENRICHER,
        Messages.getString("IntegrationEditorPaletteFactory.ENRICHER_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(EnricherModelElement.class, getDiagram()),
        IntegrationImages.ENRICHER_SMALL, IntegrationImages.ENRICHER);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_HEADER_ENRICHER,
        Messages.getString("IntegrationEditorPaletteFactory.HEADER_ENRICHER_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(HeaderEnricherModelElement.class, getDiagram()),
        IntegrationImages.ENRICHER_SMALL, IntegrationImages.ENRICHER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_JSON_TO_OBJECT_TRANSFORMER,
        Messages.getString("IntegrationEditorPaletteFactory.JSON_TO_OBJECT_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            JsonToObjectTransformerModelElement.class, getDiagram()), IntegrationImages.TRANSFORMER_SMALL,
        IntegrationImages.TRANSFORMER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_MAP_TO_OBJECT_TRANSFORMER,
        Messages.getString("IntegrationEditorPaletteFactory.MAP_TO_OBJECT_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            MapToObjectTransformerModelElement.class, getDiagram()), IntegrationImages.TRANSFORMER_SMALL,
        IntegrationImages.TRANSFORMER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_OBJECT_TO_JSON_TRANSFORMER,
        Messages.getString("IntegrationEditorPaletteFactory.OBJECT_TO_JSON_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            ObjectToJsonTransformerModelElement.class, getDiagram()), IntegrationImages.TRANSFORMER_SMALL,
        IntegrationImages.TRANSFORMER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_OBJECT_TO_MAP_TRANSFORMER,
        Messages.getString("IntegrationEditorPaletteFactory.OBJECT_TO_MAP_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            ObjectToMapTransformerModelElement.class, getDiagram()), IntegrationImages.TRANSFORMER_SMALL,
        IntegrationImages.TRANSFORMER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_OBJECT_TO_STRING_TRANSFORMER,
        Messages.getString("IntegrationEditorPaletteFactory.OBJECT_TO_STRING_TRANSFORMER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            ObjectToStringTransformerModelElement.class, getDiagram()),
        IntegrationImages.TRANSFORMER_SMALL, IntegrationImages.TRANSFORMER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_PAYLOAD_DESERIALIZING_TRANSFORMER,
        Messages.getString("IntegrationEditorPaletteFactory.PAYLOAD_DESERIALIZING_TRANSFORMER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            PayloadDeserializingTransformerModelElement.class, getDiagram()),
        IntegrationImages.TRANSFORMER_SMALL, IntegrationImages.TRANSFORMER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_PAYLOAD_SERIALIZING_TRANSFORMER,
        Messages.getString("IntegrationEditorPaletteFactory.PAYLOAD_SERIALIZING_TRANSFORMER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            PayloadSerializingTransformerModelElement.class, getDiagram()),
        IntegrationImages.TRANSFORMER_SMALL, IntegrationImages.TRANSFORMER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(IntegrationSchemaConstants.ELEM_SYSLOG_TO_MAP_TRANSFORMER,
        Messages.getString("IntegrationEditorPaletteFactory.SYSLOG_TO_MAP_TRANSFORMER_COMPONENT_DESCRIPTON"), new ModelElementCreationFactory( //$NON-NLS-1$
            SyslogToMapTransformerModelElement.class, getDiagram()), IntegrationImages.TRANSFORMER_SMALL,
        IntegrationImages.TRANSFORMER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_TRANSFORMER,
        Messages.getString("IntegrationEditorPaletteFactory.TRANSFORMER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory(TransformerModelElement.class, //$NON-NLS-1$
            getDiagram()), IntegrationImages.TRANSFORMER_SMALL, IntegrationImages.TRANSFORMER);
    entries.add(entry);

    drawer.addAll(entries);
    return drawer;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.gef.palette.PaletteDrawer

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.