use of com.intellij.pom.xml.impl.XmlAspectChangeSetImpl in project intellij-community by JetBrains.
the class XmlDocumentChangedImpl method createXmlDocumentChanged.
public static PomModelEvent createXmlDocumentChanged(PomModel source, XmlDocument document) {
final PomModelEvent event = new PomModelEvent(source);
XmlFile xmlFile = PsiTreeUtil.getParentOfType(document, XmlFile.class);
final XmlAspectChangeSetImpl xmlAspectChangeSet = new XmlAspectChangeSetImpl(source, xmlFile);
xmlAspectChangeSet.add(new XmlDocumentChangedImpl(document));
event.registerChangeSet(source.getModelAspect(XmlAspect.class), xmlAspectChangeSet);
return event;
}
use of com.intellij.pom.xml.impl.XmlAspectChangeSetImpl in project intellij-community by JetBrains.
the class XmlTagNameChangedImpl method createXmlTagNameChanged.
public static PomModelEvent createXmlTagNameChanged(PomModel model, XmlTag tag, String oldName) {
final PomModelEvent event = new PomModelEvent(model);
final XmlAspectChangeSetImpl xmlAspectChangeSet = new XmlAspectChangeSetImpl(model, PsiTreeUtil.getParentOfType(tag, XmlFile.class));
xmlAspectChangeSet.add(new XmlTagNameChangedImpl(tag, oldName));
event.registerChangeSet(model.getModelAspect(XmlAspect.class), xmlAspectChangeSet);
return event;
}
Aggregations