From 8c78cb483ebde520730325a12b386e2d1e24188d Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 5 Aug 2009 19:06:28 +0400 Subject: [PATCH] minor fix --- .../plugins/intelliLang/inject/xml/XmlLanguageInjectionSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/xml/XmlLanguageInjectionSupport.java b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/xml/XmlLanguageInjectionSupport.java index d1aeecf144..4a94230af4 100644 --- a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/xml/XmlLanguageInjectionSupport.java +++ b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/xml/XmlLanguageInjectionSupport.java @@ -182,7 +182,7 @@ public class XmlLanguageInjectionSupport extends AbstractLanguageInjectionSuppor } final Pattern pattern = Pattern.compile("withLocalName[^\"]*\"([^\"]*)\"\\)+(?:\\.withNamespace[^\"]*\"([^\"]*)\")?"); for (InjectionPlace place : injection.getInjectionPlaces()) { - if (place.isEnabled() && place.getElementPattern() != null && (element == null || place.getElementPattern().accepts(element))) { + if (element == null || place.getElementPattern() != null && place.getElementPattern().accepts(element)) { final Matcher matcher = pattern.matcher(place.getText()); if (matcher.find()) { final Pair pair1 = Pair.create(matcher.group(1), matcher.group(2)); @@ -194,7 +194,7 @@ public class XmlLanguageInjectionSupport extends AbstractLanguageInjectionSuppor if (result == null) { if (place.getText().startsWith("xmlTag")) result = new XmlTagInjection().copyFrom(injection); - if (place.getText().startsWith("xmlAttribute")) result = new XmlAttributeInjection().copyFrom(injection); + else if (place.getText().startsWith("xmlAttribute")) result = new XmlAttributeInjection().copyFrom(injection); else continue; } if (result instanceof XmlAttributeInjection) { -- 2.11.4.GIT