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