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"); }
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); }
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); }
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); }