use of com.intellij.pom.xml.events.XmlChange in project intellij-community by JetBrains.
the class XmlTextImpl method createEvent.
private PomModelEvent createEvent(final XmlChange... events) {
final PomModelEvent event = new PomModelEvent(PomManager.getModel(getProject()));
final XmlAspectChangeSetImpl xmlAspectChangeSet = new XmlAspectChangeSetImpl(PomManager.getModel(getProject()), (XmlFile) getContainingFile());
for (XmlChange xmlChange : events) {
xmlAspectChangeSet.add(xmlChange);
}
event.registerChangeSet(PomManager.getModel(getProject()).getModelAspect(XmlAspect.class), xmlAspectChangeSet);
return event;
}
use of com.intellij.pom.xml.events.XmlChange in project intellij-community by JetBrains.
the class XmlAspectChangeSetImpl method toString.
@Override
public String toString() {
final StringBuilder buffer = new StringBuilder();
final Iterator<XmlChange> iterator = myChanges.iterator();
while (iterator.hasNext()) {
XmlChange xmlChange = iterator.next();
buffer.append("(");
buffer.append(xmlChange);
buffer.append(")");
if (iterator.hasNext())
buffer.append(", ");
}
return buffer.toString();
}
Aggregations