use of org.eclipse.core.runtime.content.IContentTypeManager in project webtools.sourceediting by eclipse.
the class TestContentTypeHandlers method testCSSExistsByFileExtension.
public void testCSSExistsByFileExtension() throws IOException {
String filename = "test.css";
IContentTypeManager registry = getContentTypeRegistry();
IContentType identifier = registry.getDescriptionFor(new NullStream(), filename, IContentDescription.ALL).getContentType();
assertTrue("content type identifier for " + filename + " does not have CSS type ", identifier != null);
}
use of org.eclipse.core.runtime.content.IContentTypeManager in project webtools.sourceediting by eclipse.
the class TestContentTypeHandlers method testJSPExists.
public void testJSPExists() {
String id = ContentTypeIdForJSP.ContentTypeID_JSP;
IContentTypeManager registry = getContentTypeRegistry();
IContentType identifier = registry.getContentType(id);
assertTrue("content type identifier " + id + " does not have JSP type ", identifier != null);
}
use of org.eclipse.core.runtime.content.IContentTypeManager in project webtools.sourceediting by eclipse.
the class TestContentTypeHandlers method testDTDExistsByFileExtension.
public void testDTDExistsByFileExtension() throws IOException {
String filename = "test.dtd";
IContentTypeManager registry = getContentTypeRegistry();
IContentType identifier = registry.getDescriptionFor(new NullStream(), filename, IContentDescription.ALL).getContentType();
assertTrue("content type identifier for " + filename + " does not have DTD type ", identifier != null);
}
use of org.eclipse.core.runtime.content.IContentTypeManager in project webtools.sourceediting by eclipse.
the class TestContentTypeHandlers method testXMLExists.
public void testXMLExists() {
String id = ContentTypeIdForXML.ContentTypeID_SSEXML;
IContentTypeManager registry = getContentTypeRegistry();
IContentType identifier = registry.getContentType(id);
assertTrue("content type identifier " + id + " does not have custom XML type ", identifier != null);
}
use of org.eclipse.core.runtime.content.IContentTypeManager in project webtools.sourceediting by eclipse.
the class TestContentTypeHandlers method testHTMLExists.
public void testHTMLExists() {
String id = ContentTypeIdForHTML.ContentTypeID_HTML;
IContentTypeManager registry = getContentTypeRegistry();
IContentType identifier = registry.getContentType(id);
assertTrue("content type identifier " + id + " does not have HTML type ", identifier != null);
}
Aggregations