mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-56393 inside -> withParent
This commit is contained in:
+1
-1
@@ -145,7 +145,7 @@ public class XmlAttributeInjection extends AbstractTagInjection {
|
||||
if (StringUtil.isNotEmpty(name)) appendStringPattern(result, ".withLocalName(", name, ")");
|
||||
if (StringUtil.isNotEmpty(namespace)) appendStringPattern(result, ".withNamespace(", namespace, ")");
|
||||
if (StringUtil.isNotEmpty(injection.getTagName()) || StringUtil.isNotEmpty(injection.getTagNamespace())) {
|
||||
result.append(".inside(").append(XmlTagInjection.getPatternString(injection)).append(")");
|
||||
result.append(".withParent(").append(XmlTagInjection.getPatternString(injection)).append(")");
|
||||
}
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
@@ -7,16 +7,16 @@
|
||||
</injection>
|
||||
<injection language="XPath" injector-id="xml">
|
||||
<display-name>JAXB attribute node</display-name>
|
||||
<place><![CDATA[xmlAttribute().withLocalName(string().equalTo("node")).inside(xmlTag().withLocalName(string().equalTo("bindings")).withNamespace(string().equalTo("http://java.sun.com/xml/ns/jaxb")))]]></place>
|
||||
<place><![CDATA[xmlAttribute().withLocalName(string().equalTo("node")).withParent(xmlTag().withLocalName(string().equalTo("bindings")).withNamespace(string().equalTo("http://java.sun.com/xml/ns/jaxb")))]]></place>
|
||||
</injection>
|
||||
<injection language="JavaScript" injector-id="xml">
|
||||
<display-name>*/@href</display-name>
|
||||
<value-pattern>^javascript:(.+)</value-pattern>
|
||||
<place><![CDATA[xmlAttribute().withLocalName(string().equalTo("href")).inside(xmlTag().withNamespace(string().equalTo("http://www.w3.org/1999/xhtml")))]]></place>
|
||||
<place><![CDATA[xmlAttribute().withLocalName(string().equalTo("href")).withParent(xmlTag().withNamespace(string().equalTo("http://www.w3.org/1999/xhtml")))]]></place>
|
||||
</injection>
|
||||
<injection language="JavaScript" injector-id="xml">
|
||||
<display-name>*/@on.*</display-name>
|
||||
<place><![CDATA[xmlAttribute().withLocalName(string().matches("on.*")).inside(xmlTag().withNamespace(string().equalTo("http://www.w3.org/1999/xhtml")))]]></place>
|
||||
<place><![CDATA[xmlAttribute().withLocalName(string().matches("on.*")).withParent(xmlTag().withNamespace(string().equalTo("http://www.w3.org/1999/xhtml")))]]></place>
|
||||
</injection>
|
||||
<injection language="CSS" injector-id="xml">
|
||||
<display-name>*/@style</display-name>
|
||||
|
||||
Reference in New Issue
Block a user