use of org.eclipse.wst.xml.core.internal.modelhandler.EmbeddedXML in project webtools.sourceediting by eclipse.
the class TestPageDirective method testSetEmbeddedType.
public void testSetEmbeddedType() {
IStructuredModel model = createUnmanagedHTMLModel();
PageDirectiveAdapter pageDirectiveAdapter = (PageDirectiveAdapter) ((IDOMModel) model).getDocument().getAdapterFor(PageDirectiveAdapter.class);
EmbeddedTypeHandler embeddedXMLHandler = new EmbeddedXML();
pageDirectiveAdapter.setEmbeddedType(embeddedXMLHandler);
EmbeddedTypeHandler handler = pageDirectiveAdapter.getEmbeddedType();
assertTrue("incorrect embedded handler", handler == embeddedXMLHandler);
}
Aggregations