use of com.intellij.pom.event.PomModelEvent 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