List<PaletteDrawer> categories = new ArrayList<PaletteDrawer>();
PaletteDrawer drawer = new PaletteDrawer(Messages
.getString("BatchEditorPaletteFactory.COMPONENTS_PALETTE_TITLE")); //$NON-NLS-1$
List<PaletteEntry> entries = new ArrayList<PaletteEntry>();
CombinedTemplateCreationEntry entry = new CombinedTemplateCreationEntry(BatchSchemaConstants.ELEM_JOB, Messages
.getString("BatchEditorPaletteFactory.JOB_COMPONENT_DESCRIPTION"), new ModelElementCreationFactory( //$NON-NLS-1$
JobModelElement.class, getDiagram()), ConfigGraphCommonImages.SEQUENCE_BEGIN_VERTICAL_SMALL,
ConfigGraphCommonImages.SEQUENCE_BEGIN_VERTICAL);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(BatchSchemaConstants.ELEM_FLOW,
Messages.getString("BatchEditorPaletteFactory.FLOW_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
new ModelElementCreationFactory(FlowModelElement.class, getDiagram()),
ConfigGraphCommonImages.SEQUENCE_BEGIN_VERTICAL_SMALL, ConfigGraphCommonImages.SEQUENCE_BEGIN_VERTICAL);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(BatchSchemaConstants.ELEM_STEP,
Messages.getString("BatchEditorPaletteFactory.STEP_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
new ModelElementCreationFactory(StepModelElement.class, getDiagram()), ConfigGraphCommonImages.ACTIVITY_SMALL,
ConfigGraphCommonImages.ACTIVITY);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(BatchSchemaConstants.ELEM_SPLIT,
Messages.getString("BatchEditorPaletteFactory.SPLIT_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
new ModelElementCreationFactory(SplitContainerElement.class, getDiagram()), BatchImages.SPLIT_SMALL,
BatchImages.SPLIT);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(BatchSchemaConstants.ELEM_DECISION,
Messages.getString("BatchEditorPaletteFactory.DECISION_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
new ModelElementCreationFactory(DecisionModelElement.class, getDiagram()), BatchImages.DECISION_SMALL,
BatchImages.DECISION);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(BatchSchemaConstants.ELEM_END,
Messages.getString("BatchEditorPaletteFactory.END_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
new ModelElementCreationFactory(EndModelElement.class, getDiagram()), BatchImages.END_SMALL,
BatchImages.END);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(BatchSchemaConstants.ELEM_FAIL,
Messages.getString("BatchEditorPaletteFactory.FAIL_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
new ModelElementCreationFactory(FailModelElement.class, getDiagram()), BatchImages.FAIL_SMALL,
BatchImages.FAIL);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(BatchSchemaConstants.ELEM_NEXT,
Messages.getString("BatchEditorPaletteFactory.NEXT_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
new ModelElementCreationFactory(NextModelElement.class, getDiagram()), BatchImages.NEXT_SMALL,
BatchImages.NEXT);
entries.add(entry);
entry = new CombinedTemplateCreationEntry(BatchSchemaConstants.ELEM_STOP,
Messages.getString("BatchEditorPaletteFactory.STOP_COMPONENT_DESCRIPTION"), //$NON-NLS-1$
new ModelElementCreationFactory(StopModelElement.class, getDiagram()), BatchImages.STOP_SMALL,
BatchImages.STOP);
entries.add(entry);