drawer.addAll(entries);
return drawer;
}
private PaletteDrawer createMessagingChannelsDrawer() {
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);
drawer.addAll(entries);
return drawer;
}