use of com.intellij.history.core.changes.ContentChange in project intellij-community by JetBrains.
the class ByteContentRetriever method recordContentAndTimestamp.
private void recordContentAndTimestamp(ChangeSet c) {
// todo what if the path is being changed during changes?
for (Change each : c.getChanges()) {
if (!(each instanceof ContentChange))
continue;
ContentChange cc = (ContentChange) each;
if (!cc.affectsPath(myPath))
continue;
myCurrentFileTimestamp = cc.getOldTimestamp();
myCurrentFileContent = cc.getOldContent();
}
}
Aggregations