handleStandardCalculations(description, detector);
// now do those specific for JSPs
// note: detector should always be of correct instance, but we'll
// check, for now.
if (detector instanceof JSPResourceEncodingDetector) {
JSPResourceEncodingDetector jspDetector = (JSPResourceEncodingDetector) detector;
String language = jspDetector.getLanguage();
if (language != null && language.length() > 0) {
description.setProperty(IContentDescriptionForJSP.LANGUAGE_ATTRIBUTE, language);
}
String contentTypeAttribute = jspDetector.getContentType();
if (contentTypeAttribute != null && contentTypeAttribute.length() > 0) {
description.setProperty(IContentDescriptionForJSP.CONTENT_TYPE_ATTRIBUTE, contentTypeAttribute);
}
}
}