Java 类com.intellij.util.xml.reflect.DomExtenderEP 实例源码

项目:intellij-ce-playground    文件:DomStubBuilderTest.java   
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, myTestRootDisposable);

  doBuilderTest("extender.xml", "File:foo\n" +
                                "  Element:foo\n" +
                                "    Element:bar\n" +
                                "      Attribute:extend:xxx\n" +
                                "    Element:bar\n");
}
项目:tools-idea    文件:DomStubBuilderTest.java   
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, myTestRootDisposable);

  doBuilderTest("extender.xml", "File:foo\n" +
                                "  Element:foo\n" +
                                "    Element:bar\n" +
                                "      Attribute:extend:xxx\n" +
                                "    Element:bar\n");
}
项目:intellij-ce-playground    文件:DomConcurrencyStressTest.java   
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, myTestRootDisposable);
}
项目:tools-idea    文件:DomConcurrencyStressTest.java   
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, myTestRootDisposable);
}
项目:consulo-xml    文件:DomExtensionsTest.java   
public <T extends DomElement> void registerDomExtender(final Class<T> domClass, final Class<? extends DomExtender<T>> extenderClass) {
  final DomExtenderEP extenderEP = new DomExtenderEP();
  extenderEP.domClassName = domClass.getName();
  extenderEP.extenderClassName = extenderClass.getName();
  //TODO [VISTALL] IdeaTestUtil.registerExtension(Extensions.getRootArea(), DomExtenderEP.EP_NAME, extenderEP, myTestRootDisposable);
}
项目:consulo-xml    文件:DomConcurrencyStressTest.java   
private void registerExtender(final Class elementClass, final Class extenderClass) {
  final DomExtenderEP extenderEP = new DomExtenderEP();
  extenderEP.domClassName = elementClass.getName();
  extenderEP.extenderClassName = extenderClass.getName();
  PsiTestExtensionUtil.registerExtension(Extensions.getRootArea(), DomExtenderEP.EP_NAME, extenderEP, myTestRootDisposable);
}