Search in sources :

Example 1 with UpdateFileInfo

use of org.netbeans.lib.cvsclient.command.update.UpdateFileInfo in project intellij-community by JetBrains.

the class CvsMessagesTranslator method fileInfoGenerated.

public void fileInfoGenerated(Object info) {
    if (info instanceof UpdateFileInfo) {
        final UpdateFileInfo updateFileInfo = (UpdateFileInfo) info;
        final File file = updateFileInfo.getFile();
        if (!myUpdatedFilesManager.fileIsNotUpdated(file) && !myFileToInfoMap.containsKey(file)) {
            myFileToInfoMap.put(file, updateFileInfo);
        }
    } else if (info instanceof UpdatedFileInfo) {
        final UpdatedFileInfo updatedFileInfo = (UpdatedFileInfo) info;
        final File file = updatedFileInfo.getFile();
        if (!myUpdatedFilesManager.fileIsNotUpdated(file)) {
            myFileToInfoMap.put(file, updatedFileInfo);
        }
    }
}
Also used : UpdatedFileInfo(org.netbeans.lib.cvsclient.command.update.UpdatedFileInfo) UpdateFileInfo(org.netbeans.lib.cvsclient.command.update.UpdateFileInfo)

Aggregations

UpdateFileInfo (org.netbeans.lib.cvsclient.command.update.UpdateFileInfo)1 UpdatedFileInfo (org.netbeans.lib.cvsclient.command.update.UpdatedFileInfo)1