public DefaultTypeSelector(BoundMap map, Element xml) {
this.form = (DefectImportForm) map;
DefectTypeStandard dts = DefectTypeStandard.get(form.getSelectedPath(),
form.getDashContext().getData());
OptionList ol = new OptionList(dts);
ol.options.insertElementAt(Defect.UNSPECIFIED, 0);
if (ol.translations != null)
ol.translations.put(Defect.UNSPECIFIED, Translator
.translate(Defect.UNSPECIFIED));
if (ol.comments != null)
ol.comments.put(Defect.UNSPECIFIED, DefectImportForm.resources
.getString("Unspecified_Type_Comment"));
comboBox = ol.getAsComboBox();
comboBox.setSelectedIndex(0);
comboBox.addActionListener((ActionListener) EventHandler.create(
ActionListener.class, this, "updateMapFromValue"));
updateMapFromValue();