From bd2ecba095f4e1cca24fc57fc38db8febcf3eed6 Mon Sep 17 00:00:00 2001 From: "no_reply@jetbrains.com" Date: Tue, 8 Feb 2005 23:44:28 +0300 Subject: [PATCH] remove subtag fixed --- source/com/intellij/psi/impl/source/xml/XmlTagImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java b/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java index 6a7875dd587c..e47a1a32011f 100644 --- a/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java +++ b/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java @@ -784,6 +784,7 @@ public class XmlTagImpl extends XmlElementImpl implements XmlTag/*, Modification if (child.getElementType() != XmlElementType.XML_TEXT) { if (treePrev.getElementType() == XmlElementType.XML_TEXT && treeNext.getElementType() == XmlElementType.XML_TEXT) { final XmlTextImpl xmlText = (XmlTextImpl)SourceTreeToPsiMap.treeElementToPsi(treePrev); + final String oldText = xmlText.getText(); model.runTransaction(new PomTransactionBase(this) { public PomModelEvent run() throws IncorrectOperationException{ final int displayOffset = xmlText.getValue().length(); @@ -807,6 +808,7 @@ public class XmlTagImpl extends XmlElementImpl implements XmlTag/*, Modification final XmlAspectChangeSet xmlAspectChangeSet = new XmlAspectChangeSet(model, (XmlFile)getContainingFile()); xmlAspectChangeSet.add(new XmlTagChildRemoved(XmlTagImpl.this, (XmlTagChild)treeNext)); xmlAspectChangeSet.add(new XmlTagChildRemoved(XmlTagImpl.this, (XmlTagChild)child)); + xmlAspectChangeSet.add(new XmlTextChanged(xmlText, oldText)); event.registerChangeSet(model.getModelAspect(XmlAspect.class), xmlAspectChangeSet); } return event;