mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
external validator for XmlElementDescriptor, ep. 2
This commit is contained in:
@@ -473,7 +473,9 @@ public class XmlHighlightVisitor extends PsiElementVisitor{
|
||||
|
||||
if (elementDescriptor instanceof Validator) {
|
||||
final String s = ((Validator)elementDescriptor).validate(tag);
|
||||
myResult.add(HighlightInfo.createHighlightInfo(HighlightInfoType.WRONG_REF,tag,s));
|
||||
if (s!=null && s.length() > 0) {
|
||||
myResult.add(HighlightInfo.createHighlightInfo(HighlightInfoType.WRONG_REF,tag,s));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user