PaletteDrawer drawer = new PaletteDrawer("Render Actions", null);
drawer.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
if (version1) {
CombinedTemplateCreationEntry combined = new CombinedTemplateCreationEntry(
"Render Action", "Create a new Render Action", Action.class,
new ActionModelElementFactory(Action.class,
IActionElement.ACTION_TYPE.RENDER_ACTION), dec
.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_ACTION), action), dec
.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_ACTION), action));
entries.add(combined);
combined = new CombinedTemplateCreationEntry("Render Bean Action",
"Create a new Render Bean Action", BeanAction.class,
new ActionModelElementFactory(BeanAction.class,
IActionElement.ACTION_TYPE.RENDER_ACTION), dec
.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_BEAN_ACTION), action), dec
.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_BEAN_ACTION), action));
entries.add(combined);
combined = new CombinedTemplateCreationEntry("Render Evaluation Action",
"Create a new Render Evaluation Action", EvaluateAction.class,
new ActionModelElementFactory(EvaluateAction.class,
IActionElement.ACTION_TYPE.RENDER_ACTION), dec
.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_EVALUATION_ACTION), action),
dec.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_EVALUATION_ACTION), action));
entries.add(combined);
combined = new CombinedTemplateCreationEntry("Render Set", "Create a new Render Set",
Set.class, new ActionModelElementFactory(Set.class,
IActionElement.ACTION_TYPE.RENDER_ACTION), dec
.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_SET_ACTION), action), dec
.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_SET_ACTION), action));
entries.add(combined);
}
else {
CombinedTemplateCreationEntry combined = new CombinedTemplateCreationEntry(
"Render Evaluate", "Create a new Render Evaluate", EvaluateAction.class,
new ActionModelElementFactory(EvaluateAction.class,
IActionElement.ACTION_TYPE.RENDER_ACTION), dec
.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_EVALUATION_ACTION), action),
dec.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_EVALUATION_ACTION), action));
entries.add(combined);
combined = new CombinedTemplateCreationEntry("Render Set", "Create a new Render Set",
Set.class, new ActionModelElementFactory(Set.class,
IActionElement.ACTION_TYPE.RENDER_ACTION), dec
.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_SET_ACTION), action), dec
.getDecoratedImageDescriptor(WebflowUIImages
.getImage(WebflowUIImages.IMG_OBJS_SET_ACTION), action));
entries.add(combined);
combined = new CombinedTemplateCreationEntry("Render",
"Create a new Render", Action.class, new ActionModelElementFactory(
Action.class, IActionElement.ACTION_TYPE.ACTION),
WebflowUIImages.DESC_OBJS_ACTION, WebflowUIImages.DESC_OBJS_ACTION);
entries.add(combined);
}