Search in sources :

Example 1 with DomExtenderEP

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());
}
Also used : DomExtenderEP(com.intellij.util.xml.reflect.DomExtenderEP)

Example 2 with DomExtenderEP

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");
}
Also used : Bar(com.intellij.util.xml.stubs.model.Bar) DomExtenderEP(com.intellij.util.xml.reflect.DomExtenderEP)

Aggregations

DomExtenderEP (com.intellij.util.xml.reflect.DomExtenderEP)2 Bar (com.intellij.util.xml.stubs.model.Bar)1