ComponentWithBrowseButton - optional remove listener on hide
[fedora-idea.git] / plugins / cvs / cvs-plugin / src / com / intellij / cvsSupport2 / cvsoperations / cvsCheckOut / CheckoutFilesOperation.java
blob66f603b3bbe0cce4d711926f256131dd47e8d776
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.cvsSupport2.cvsoperations.cvsCheckOut;
18 import com.intellij.cvsSupport2.application.CvsEntriesManager;
19 import com.intellij.cvsSupport2.config.CvsConfiguration;
20 import com.intellij.cvsSupport2.cvshandlers.CvsHandler;
21 import com.intellij.cvsSupport2.cvsoperations.common.CompositeOperaton;
22 import com.intellij.openapi.vcs.FilePath;
24 /**
25 * author: lesya
28 public class CheckoutFilesOperation extends CompositeOperaton {
30 public CheckoutFilesOperation(FilePath[] files, CvsConfiguration cvsConfiguration) {
31 for (FilePath file : files) {
32 addFile(file, cvsConfiguration);
37 private void addFile(FilePath file, CvsConfiguration cvsConfiguration) {
38 addOperation(
39 new CheckoutFileOperation(file.getVirtualFileParent(), cvsConfiguration, file.getName(),
40 CvsEntriesManager.getInstance().getEntryFor(file.getVirtualFileParent(), file.getName()),
41 cvsConfiguration.MAKE_NEW_FILES_READONLY, file.isDirectory()));
44 public int getFilesToProcessCount() {
45 return CvsHandler.UNKNOWN_COUNT;