use of org.eclipse.wst.sse.core.internal.modelhandler.ModelHandlerRegistry in project webtools.sourceediting by eclipse.
the class TestModelHandlers method testCreation.
public void testCreation() {
ModelHandlerRegistry registry = getModelHandlerRegistry();
assertTrue("model handler registry must exist", registry != null);
}
use of org.eclipse.wst.sse.core.internal.modelhandler.ModelHandlerRegistry in project webtools.sourceediting by eclipse.
the class TestModelHandlers method testJSPExistsFromFilename.
public void testJSPExistsFromFilename() throws IOException {
String filename = "test.jsp";
ModelHandlerRegistry registry = getModelHandlerRegistry();
IModelHandler handler = registry.getHandlerFor(filename, null);
assertTrue("model handler registry does not have JSP type ", handler != null && handler.getAssociatedContentTypeId().equals(ContentTypeIdForJSP.ContentTypeID_JSP));
}
use of org.eclipse.wst.sse.core.internal.modelhandler.ModelHandlerRegistry in project webtools.sourceediting by eclipse.
the class TestModelHandlers method testDTDExists.
public void testDTDExists() {
String id = "org.eclipse.wst.dtd.core.dtdsource";
ModelHandlerRegistry registry = getModelHandlerRegistry();
IModelHandler handler = registry.getHandlerForContentTypeId(id);
assertTrue("model handler registry does not have DTD type ", handler != null && handler.getAssociatedContentTypeId().equals(id));
}
use of org.eclipse.wst.sse.core.internal.modelhandler.ModelHandlerRegistry in project webtools.sourceediting by eclipse.
the class TestModelHandlers method testJSPExists.
public void testJSPExists() {
String id = ContentTypeIdForJSP.ContentTypeID_JSP;
ModelHandlerRegistry registry = getModelHandlerRegistry();
IModelHandler handler = registry.getHandlerForContentTypeId(id);
assertTrue("model handler registry does not have JSP type ", handler != null && handler.getAssociatedContentTypeId().equals(id));
}
use of org.eclipse.wst.sse.core.internal.modelhandler.ModelHandlerRegistry in project webtools.sourceediting by eclipse.
the class TestModelHandlers method testCSSExists.
public void testCSSExists() {
String id = ContentTypeIdForCSS.ContentTypeID_CSS;
ModelHandlerRegistry registry = getModelHandlerRegistry();
IModelHandler handler = registry.getHandlerForContentTypeId(id);
assertTrue("model handler registry does not have CSS type ", handler != null && handler.getAssociatedContentTypeId().equals(id));
}
Aggregations