public static IStructuredDocumentRegion createRegion(int type) {
IStructuredDocumentRegion instance = null;
switch (type) {
case JSP_DIRECTIVE :
instance = new JSPDirectiveStructuredDocumentRegion();
break;
default :
instance = XMLStructuredRegionFactory.createRegion(type);
}
return instance;