dataModel = new MapDataModel();
dataModel.setValue("preset", nonePreset);
dataModel.setValue("widget", className);
ListDataModel presetModel = new ListDataModel();
presetModel.addValue(nonePreset);
for (Iterator i = info.getPresetEntries().iterator(); i.hasNext();) {
presetModel.addValue(i.next());
}
dialog = constructDialog("InsertDialog", dataModel);
((ComboBox) dialog.getWidget("PresetBox")).setListDataModel(presetModel);
((Button) dialog.getWidget("AnchorButton")).setEnabled(info.getSupportsAnchor());