private PaletteEntry createTool(ICreationToolEntry creationToolEntry) {
if (creationToolEntry instanceof IObjectCreationToolEntry) {
IObjectCreationToolEntry objectCreationToolEntry = (IObjectCreationToolEntry) creationToolEntry;
ICreateFeature feat = objectCreationToolEntry.getCreateFeature();
if (feat instanceof ICreateFeature) {
DefaultCreationFactory cf = new DefaultCreationFactory(feat, ICreateFeature.class);
Object template = (DND_FROM_PALETTE == true) ? cf : null;
CombinedTemplateCreationEntry pe = new CombinedTemplateCreationEntry(feat.getCreateName(), feat.getCreateDescription(),
template, cf, getImageDescriptor(creationToolEntry, true), getImageDescriptor(creationToolEntry, false));
pe.setToolClass(GFCreationTool.class);
return pe;
}