private void initializeDoctypeValues() { int index = 0; String doctype = HTMLContentProperties.getProperty( HTMLContentProperties.DOCUMENT_TYPE, getResource(), false); if (doctype != null) { /* * If item is already part of combo, select it. Otherwise, select * none. */ index = fDocumentTypeIds.indexOf(doctype); } // set combobox index = index >= 0 ? index : 0; fDocumentTypeCombo.select(index); updateDoctypeText(index, doctype); }