private boolean performDoctypeOk() {
   int index = fDocumentTypeCombo.getSelectionIndex();
   if (index > -1) {
     String id = (String) fDocumentTypeIds.get(index);
     if (id == null || id.equalsIgnoreCase(SELECT_NONE)) {
       // if none, use null
       id = null;
     }
     try {
       HTMLContentProperties.setProperty(HTMLContentProperties.DOCUMENT_TYPE, getResource(), id);
     } catch (CoreException e) {
       // maybe in future, let user know there was a problem saving
       // file
       Logger.log(Logger.WARNING_DEBUG, e.getMessage(), e);
       return false;
     }
   }
   return true;
 }
 private boolean performCSSProfileOk() {
   int index = fProfileCombo.getSelectionIndex();
   if (index > -1) {
     String id = (String) fProfileIds.get(index);
     if (id == null || id.length() == 0 || id.equalsIgnoreCase(SELECT_NONE)) {
       // if none, use null
       id = null;
     }
     try {
       CSSContentProperties.setProperty(CSSContentProperties.CSS_PROFILE, getResource(), id);
     } catch (CoreException e) {
       // maybe in future, let user know there was a problem saving
       // file
       Logger.log(Logger.WARNING_DEBUG, e.getMessage(), e);
       return false;
     }
   }
   return true;
 }