void () { super.init(); ApplicationManager.getApplication().runWriteAction(() -> { ExternalResourceManagerExImpl .registerResourceTemporarily("urn:test:simple.rng", toAbsolutePath("highlighting/simple.rng"), getTestRootDisposable()); ExternalResourceManagerExImpl.registerResourceTemporarily("urn:test:addressBook", toAbsolutePath("highlighting/rnc/addressbook.rnc"), getTestRootDisposable()); //m.addResource("http://www.w3.org/1999/XSL/Transform", toAbsolutePath("highlighting/relaxng.rng")); ExternalResourceManagerExImpl.registerResourceTemporarily("http://www.w3.org/1999/XSL/Format", toAbsolutePath("highlighting/rnc/fo/main.rnc"), getTestRootDisposable()); ExternalResourceManagerExImpl.registerResourceTemporarily("http://docbook.org/ns/docbook", toAbsolutePath("highlighting/docbook.rng"), getTestRootDisposable()); ExternalResourceManagerExImpl.registerResourceTemporarily("urn:intelliForm:AttachmentFilter", toAbsolutePath("highlighting/attachment-filter.rng"), getTestRootDisposable()); ExternalResourceManagerExImpl .registerResourceTemporarily("http://www.w3.org/1999/xhtml", toAbsolutePath("highlighting/html5/xhtml5.rnc"), getTestRootDisposable()); List<String> list = new ArrayList<>(); list.add("urn:intelliForm:Spaces"); list.add("http://www.w3.org/1999/xlink"); list.add("http://www.w3.org/2000/svg"); list.add("http://www.ascc.net/xml/schematron"); list.add("http://www.w3.org/2000/svg"); list.add("http://www.w3.org/1998/Math/MathML"); list.add("http://www.w3.org/1999/02/22-rdf-syntax-ns#"); list.add("http://nwalsh.com/xmlns/schema-control/"); list.add("http://xml.apache.org/fop/extensions"); list.add("http://www.antennahouse.com/names/XSL/Extensions"); list.add("http://www.renderx.com/XSL/Extensions"); list.add("http://relaxng.org/ns/compatibility/annotations/1.0"); ExternalResourceManagerEx.getInstanceEx().addIgnoredResources(list, getTestRootDisposable()); }); }