type.add("Insert");
type.setSimpleValue("Append");
type.addListener(Events.Change, new Listener<FieldEvent>() {
public void handleEvent(FieldEvent be) {
boolean append = type.getSimpleValue().equals("Append");
Feedback f = append ? Feedback.APPEND : Feedback.INSERT;
target.setFeedback(f);
}
});
toolBar.add(type);
toolBar.add(new SeparatorToolItem());