@Override
public final void childReplaced(final PsiTreeChangeEvent pEvent) {
if (ignoreEvents)
return;
final PsiElement oldChild = pEvent.getOldChild();
final XmlTag parent = PsiTreeUtil.getParentOfType(pEvent.getParent(),
XmlTag.class,
false);
if (parent == null)
return;
String oldChangedProperty = null;
String newChangedProperty = null;
if (oldChild instanceof XmlText)
oldChangedProperty = getPropertyForElement(parent);
else if (oldChild instanceof XmlTag) {
final XmlTag tag = (XmlTag) oldChild;
final String[] tagPath = PsiUtils.getPathAndConcat(parent, tag.getName());
oldChangedProperty = getPropertyForPath(tagPath);
}
final PsiElement newChild = pEvent.getNewChild();
if (newChild instanceof XmlText)
newChangedProperty = getPropertyForElement(newChild);
else if (newChild instanceof XmlTag) {
final XmlTag tag = (XmlTag) newChild;
final String[] tagPath = PsiUtils.getPathAndConcat(parent, tag.getName());