Search in sources :

Example 1 with ContentChange

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();
    }
}
Also used : ContentChange(com.intellij.history.core.changes.ContentChange) ContentChange(com.intellij.history.core.changes.ContentChange) Change(com.intellij.history.core.changes.Change)

Aggregations

Change (com.intellij.history.core.changes.Change)1 ContentChange (com.intellij.history.core.changes.ContentChange)1