return selectField.getControl();
}
protected ApplicationDialog createSelectionDialog() {
EventList eventList = createEventList(selectableItemsHolder);
final ValueModel2EventListBridge itemRefresher = new ValueModel2EventListBridge(selectableItemsHolder,
eventList, true);
ListSelectionDialog selectionDialog = null;
if (filtered) {
FilterListSelectionDialog filterDialog = new FilterListSelectionDialog("", null, new FilterList(eventList));
if (filterProperties == null) {
filterDialog.setFilterator(new StringTextFilterator());
} else {
filterDialog.setFilterator(new BeanTextFilterator(filterProperties));
}
selectionDialog = filterDialog;
} else {
selectionDialog = new ListSelectionDialog("", null, eventList);
}
selectionDialog.setOnAboutToShow(new Block() {
protected void handle(Object ignore) {
itemRefresher.synchronize();
}
});
selectionDialog.setOnSelectAction(new Closure() {
public Object call(Object argument) {