public PaletteDrawer createPaletteDrawer(AbstractConfigGraphDiagram diagram, String namespaceUri) {
PaletteDrawer drawer = new PaletteDrawer("", IntegrationImages.BADGE_SI_TWITTER); //$NON-NLS-1$
List<PaletteEntry> entries = new ArrayList<PaletteEntry>();
CombinedTemplateCreationEntry entry = new CombinedTemplateCreationEntry(
IntTwitterSchemaConstants.ELEM_DM_INBOUND_CHANNEL_ADAPTER,
Messages.IntTwitterPaletteFactory_DM_INBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION,
new ModelElementCreationFactory(DmInboundChannelAdapterModelElement.class, diagram, namespaceUri),
IntegrationImages.INBOUND_ADAPTER_SMALL, IntegrationImages.INBOUND_ADAPTER);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(IntTwitterSchemaConstants.ELEM_DM_OUTBOUND_CHANNEL_ADAPTER,
Messages.IntTwitterPaletteFactory_DM_OUTBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION,
new ModelElementCreationFactory(DmOutboundChannelAdapterModelElement.class, diagram, namespaceUri),
IntegrationImages.OUTBOUND_ADAPTER_SMALL, IntegrationImages.OUTBOUND_ADAPTER);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(IntTwitterSchemaConstants.ELEM_INBOUND_CHANNEL_ADAPTER,
Messages.IntTwitterPaletteFactory_INBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION,
new ModelElementCreationFactory(InboundChannelAdapterModelElement.class, diagram, namespaceUri),
IntegrationImages.INBOUND_ADAPTER_SMALL, IntegrationImages.INBOUND_ADAPTER);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(
IntTwitterSchemaConstants.ELEM_MENTIONS_INBOUND_CHANNEL_ADAPTER,
Messages.IntTwitterPaletteFactory_MENTIONS_INBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION,
new ModelElementCreationFactory(MentionsInboundChannelAdapterModelElement.class, diagram, namespaceUri),
IntegrationImages.INBOUND_ADAPTER_SMALL, IntegrationImages.INBOUND_ADAPTER);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(IntTwitterSchemaConstants.ELEM_OUTBOUND_CHANNEL_ADAPTER,
Messages.IntTwitterPaletteFactory_OUTBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION,
new ModelElementCreationFactory(OutboundChannelAdapterModelElement.class, diagram, namespaceUri),
IntegrationImages.OUTBOUND_ADAPTER_SMALL, IntegrationImages.OUTBOUND_ADAPTER);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(IntTwitterSchemaConstants.ELEM_SEARCH_INBOUND_CHANNEL_ADAPTER,
Messages.IntTwitterPaletteFactory_SEARCH_INBOUND_CHANNEL_ADAPTER_COMPONENT_DESCRIPTION,
new ModelElementCreationFactory(SearchInboundChannelAdapterModelElement.class, diagram, namespaceUri),
IntegrationImages.INBOUND_ADAPTER_SMALL, IntegrationImages.INBOUND_ADAPTER);
entries.add(entry);