use of com.intellij.util.xml.reflect.DomExtenderEP in project intellij-community by JetBrains.
the class DomConcurrencyStressTest method registerExtender.
private void registerExtender(final Class elementClass, final Class extenderClass) {
final DomExtenderEP extenderEP = new DomExtenderEP();
extenderEP.domClassName = elementClass.getName();
extenderEP.extenderClassName = extenderClass.getName();
PlatformTestUtil.registerExtension(Extensions.getRootArea(), DomExtenderEP.EP_NAME, extenderEP, getTestRootDisposable());
}
use of com.intellij.util.xml.reflect.DomExtenderEP in project intellij-community by JetBrains.
the class DomStubBuilderTest method testDomExtension.
public void testDomExtension() throws Exception {
DomExtenderEP ep = new DomExtenderEP();
ep.domClassName = Bar.class.getName();
ep.extenderClassName = TestExtender.class.getName();
PlatformTestUtil.registerExtension(Extensions.getRootArea(), DomExtenderEP.EP_NAME, ep, myFixture.getTestRootDisposable());
doBuilderTest("extender.xml", "File:foo\n" + " Element:foo\n" + " Element:bar\n" + " Attribute:extend:xxx\n" + " Element:bar\n");
}
Aggregations