From 26a419f9d55cbc62aa709a7d9c700d7227ece5d4 Mon Sep 17 00:00:00 2001 From: Alexey Gopachenko Date: Wed, 25 Aug 2010 20:58:41 +0400 Subject: [PATCH] intellilang split java & html xml injection descriptors to avoid (slow) java stuff in non-java IDEs --- .../src/META-INF/intellilang-java-support.xml | 2 ++ .../src/META-INF/intellilang-xml-support.xml | 2 +- .../resources/xmlInjections-html.xml | 27 +++++++++++++++++++ ...lInjections.xml => xmlInjections-java.xml} | 24 ----------------- 4 files changed, 30 insertions(+), 25 deletions(-) create mode 100644 plugins/IntelliLang/xml-support/resources/xmlInjections-html.xml rename plugins/IntelliLang/xml-support/resources/{xmlInjections.xml => xmlInjections-java.xml} (74%) diff --git a/plugins/IntelliLang/src/META-INF/intellilang-java-support.xml b/plugins/IntelliLang/src/META-INF/intellilang-java-support.xml index a84e7ae05f1d..f31354799a4c 100644 --- a/plugins/IntelliLang/src/META-INF/intellilang-java-support.xml +++ b/plugins/IntelliLang/src/META-INF/intellilang-java-support.xml @@ -17,6 +17,8 @@ + \ No newline at end of file diff --git a/plugins/IntelliLang/src/META-INF/intellilang-xml-support.xml b/plugins/IntelliLang/src/META-INF/intellilang-xml-support.xml index c7d3511d488e..13e6d4f0458e 100644 --- a/plugins/IntelliLang/src/META-INF/intellilang-xml-support.xml +++ b/plugins/IntelliLang/src/META-INF/intellilang-xml-support.xml @@ -8,7 +8,7 @@ + config="/resources/xmlInjections-html.xml"/> \ No newline at end of file diff --git a/plugins/IntelliLang/xml-support/resources/xmlInjections-html.xml b/plugins/IntelliLang/xml-support/resources/xmlInjections-html.xml new file mode 100644 index 000000000000..f15ad09d4d5a --- /dev/null +++ b/plugins/IntelliLang/xml-support/resources/xmlInjections-html.xml @@ -0,0 +1,27 @@ + + + + */@href + ^javascript:(.+) + + + + */@on.* + + + + */@style + dummy_selector { + } + + +\ + script + + + + style + + lower-case(@type)='text/css' + + diff --git a/plugins/IntelliLang/xml-support/resources/xmlInjections.xml b/plugins/IntelliLang/xml-support/resources/xmlInjections-java.xml similarity index 74% rename from plugins/IntelliLang/xml-support/resources/xmlInjections.xml rename to plugins/IntelliLang/xml-support/resources/xmlInjections-java.xml index 31ec992c8137..a3284d2d0cab 100644 --- a/plugins/IntelliLang/xml-support/resources/xmlInjections.xml +++ b/plugins/IntelliLang/xml-support/resources/xmlInjections-java.xml @@ -9,21 +9,6 @@ JAXB attribute node - - */@href - ^javascript:(.+) - - - - */@on.* - - - - */@style - dummy_selector { - } - - ejb-ql @@ -62,10 +47,6 @@ query|update/@sql - - script - - sql|select|insert|update|delete|statement @@ -76,9 +57,4 @@ - - style - - lower-case(@type)='text/css' -