* code to new instance. In future, should get instance from registry.
*
* Specification cites HTML as the default contentType.
*/
private EmbeddedTypeHandler getJSPDefaultEmbeddedType(IStructuredModel model) {
EmbeddedTypeRegistry reg = getEmbeddedContentTypeRegistry();
String mimeType = null;
// default embedded type for fragments
if (model != null) {
IFile file = getFile(model);
if (file != null) {
mimeType = JSPFContentProperties.getProperty(JSPFContentProperties.JSPCONTENTTYPE, file, true);
}
}
mimeType = mimeType == null ? getDefaultMimeType() : mimeType;
return reg.getTypeFor(mimeType);
}