Search in sources :

Example 1 with UpdateOperation

use of com.intellij.cvsSupport2.cvsoperations.cvsUpdate.UpdateOperation in project intellij-community by JetBrains.

the class CommandCvsHandler method createTagHandler.

public static CvsHandler createTagHandler(FilePath[] selectedFiles, String tagName, boolean switchToThisTag, boolean overrideExisting, boolean makeNewFilesReadOnly, Project project) {
    final CompositeOperation operation = new CompositeOperation();
    operation.addOperation(new TagOperation(selectedFiles, tagName, false, overrideExisting));
    if (switchToThisTag) {
        operation.addOperation(new UpdateOperation(selectedFiles, tagName, makeNewFilesReadOnly, project));
    }
    return new CommandCvsHandler(CvsBundle.message("operation.name.create.tag"), operation, FileSetToBeUpdated.selectedFiles(selectedFiles));
}
Also used : TagOperation(com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.TagOperation) UpdateOperation(com.intellij.cvsSupport2.cvsoperations.cvsUpdate.UpdateOperation)

Example 2 with UpdateOperation

use of com.intellij.cvsSupport2.cvsoperations.cvsUpdate.UpdateOperation in project intellij-community by JetBrains.

the class CommandCvsHandler method createBranchHandler.

public static CvsHandler createBranchHandler(FilePath[] selectedFiles, String branchName, boolean switchToThisBranch, boolean overrideExisting, boolean makeNewFilesReadOnly, Project project) {
    final CompositeOperation operation = new CompositeOperation();
    operation.addOperation(new BranchOperation(selectedFiles, branchName, overrideExisting));
    if (switchToThisBranch) {
        operation.addOperation(new UpdateOperation(selectedFiles, branchName, makeNewFilesReadOnly, project));
    }
    return new CommandCvsHandler(CvsBundle.message("operation.name.create.branch"), operation, FileSetToBeUpdated.selectedFiles(selectedFiles));
}
Also used : BranchOperation(com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.BranchOperation) UpdateOperation(com.intellij.cvsSupport2.cvsoperations.cvsUpdate.UpdateOperation)

Aggregations

UpdateOperation (com.intellij.cvsSupport2.cvsoperations.cvsUpdate.UpdateOperation)2 BranchOperation (com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.BranchOperation)1 TagOperation (com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.TagOperation)1