Package org.eclipse.gef.palette

Examples of org.eclipse.gef.palette.CombinedTemplateCreationEntry


                                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() {
View Full Code Here


  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);
View Full Code Here

  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);
View Full Code Here

  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);
View Full Code Here

  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);
View Full Code Here

    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);
View Full Code Here

    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);
View Full Code Here

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

    CombinedTemplateCreationEntry entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_CHANNEL,
        Messages.getString("IntegrationEditorPaletteFactory.CHANNEL_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            ChannelModelElement.class, getDiagram()), IntegrationImages.CHANNEL_SMALL,
        IntegrationImages.CHANNEL);
    entries.add(entry);

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

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_LOGGING_CHANNEL_ADAPTER,
        Messages.getString("IntegrationEditorPaletteFactory.LOGGING_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            LoggingChannelAdapterModelElement.class, getDiagram()),
        IntegrationImages.OUTBOUND_ADAPTER_SMALL, IntegrationImages.OUTBOUND_ADAPTER);
    entries.add(entry);

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

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_PUBLISH_SUBSCRIBE_CHANNEL,
        Messages.getString("IntegrationEditorPaletteFactory.PUBLISH_SUBSCRIBE_CHANNEL_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            PublishSubscribeChannelModelElement.class, getDiagram()),
        IntegrationImages.PUBSUB_CHANNEL_SMALL, IntegrationImages.PUBSUB_CHANNEL);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_RESOURCE_INBOUND_CHANNEL_ADAPTER,
        Messages.getString("IntegrationEditorPaletteFactory.RESOURCE_INBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            ResourceInboundChannelAdapterModelElement.class, getDiagram()),
        IntegrationImages.INBOUND_ADAPTER_SMALL, IntegrationImages.INBOUND_ADAPTER);
View Full Code Here

    PaletteDrawer drawer = new PaletteDrawer(
        Messages.getString("IntegrationEditorPaletteFactory.ENDPOINTS_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_CHAIN,
        Messages.getString("IntegrationEditorPaletteFactory.CHAIN_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory(ChainModelElement.class, getDiagram()), //$NON-NLS-1$
        IntegrationImages.CHAIN_SMALL, IntegrationImages.CHAIN);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_GATEWAY,
        Messages.getString("IntegrationEditorPaletteFactory.GATEWAY_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
        new ModelElementCreationFactory(GatewayModelElement.class, getDiagram()),
        IntegrationImages.INBOUND_GATEWAY_SMALL, IntegrationImages.INBOUND_GATEWAY);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(
        IntegrationSchemaConstants.ELEM_SERVICE_ACTIVATOR,
        Messages.getString("IntegrationEditorPaletteFactory.SERVICE_ACTIVATOR_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
            ServiceActivatorModelElement.class, getDiagram()), IntegrationImages.SERVICE_ACTIVATOR_SMALL,
        IntegrationImages.SERVICE_ACTIVATOR);
    entries.add(entry);
View Full Code Here

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

    CombinedTemplateCreationEntry entry = new CombinedTemplateCreationEntry(
        IntMailSchemaConstants.ELEM_HEADER_ENRICHER, Messages.IntMailPaletteFactory_HEADER_ENRICHER_COMPONENT_DESCRIPTION,
        new ModelElementCreationFactory(HeaderEnricherModelElement.class, diagram, namespaceUri),
        IntegrationImages.ENRICHER_SMALL, IntegrationImages.ENRICHER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(IntMailSchemaConstants.ELEM_IMAP_IDLE_CHANNEL_ADAPTER,
        Messages.IntMailPaletteFactory_IMAP_IDLE_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION, new ModelElementCreationFactory(
            ImapIdleChannelAdapterModelElement.class, diagram, namespaceUri),
        IntegrationImages.INBOUND_ADAPTER_SMALL, IntegrationImages.INBOUND_ADAPTER);
    entries.add(entry);

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

    entry = new CombinedTemplateCreationEntry(IntMailSchemaConstants.ELEM_MAIL_TO_STRING_TRANSFORMER,
        Messages.IntMailPaletteFactory_MAIL_TO_STRING_TRANSFORMER_COMPONENT_DESCRIPTION, new ModelElementCreationFactory(
            MailToStringTransformerModelElement.class, diagram, namespaceUri),
        IntegrationImages.TRANSFORMER_SMALL, IntegrationImages.TRANSFORMER);
    entries.add(entry);

    entry = new CombinedTemplateCreationEntry(IntMailSchemaConstants.ELEM_OUTBOUND_CHANNEL_ADAPTER,
        Messages.IntMailPaletteFactory_OUTBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION, new ModelElementCreationFactory(
            OutboundChannelAdapterModelElement.class, diagram, namespaceUri),
        IntegrationImages.OUTBOUND_ADAPTER_SMALL, IntegrationImages.OUTBOUND_ADAPTER);
    entries.add(entry);
View Full Code Here

TOP

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

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.