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
.actions
.cvsContext
;
18 import com
.intellij
.cvsSupport2
.connections
.CvsEnvironment
;
19 import com
.intellij
.cvsSupport2
.cvsoperations
.cvsAdd
.AddedFileInfo
;
20 import com
.intellij
.openapi
.editor
.Editor
;
21 import com
.intellij
.openapi
.project
.Project
;
22 import com
.intellij
.openapi
.vcs
.FilePath
;
23 import com
.intellij
.openapi
.vcs
.changes
.ChangeList
;
24 import com
.intellij
.openapi
.vcs
.changes
.Change
;
25 import com
.intellij
.openapi
.vcs
.ui
.Refreshable
;
26 import com
.intellij
.openapi
.vfs
.VirtualFile
;
27 import com
.intellij
.psi
.PsiElement
;
28 import org
.jetbrains
.annotations
.Nullable
;
31 import java
.util
.Collection
;
36 public class CvsContextAdapter
implements CvsContext
{
37 public Project
getProject() {
41 public boolean cvsIsActive() {
46 public VirtualFile
getSelectedFile() {
50 public VirtualFile
[] getSelectedFiles() {
51 return VirtualFile
.EMPTY_ARRAY
;
54 public Refreshable
getRefreshableDialog() {
58 public Collection
<String
> getDeletedFileNames() {
62 public String
getFileToRestore() {
66 public Editor
getEditor() {
70 public Collection
<VirtualFile
> getSelectedFilesCollection() {
74 public File
getSomeSelectedFile() {
78 public File
[] getSelectedIOFiles() {
82 public int getModifiers() {
86 public CvsLightweightFile
getCvsLightweightFile() {
90 public CvsEnvironment
getEnvironment() {
94 public Collection
<AddedFileInfo
> getAllFilesToAdd() {
98 public CvsLightweightFile
[] getSelectedLightweightFiles() {
99 return new CvsLightweightFile
[0];
102 public String
getPlace() {
106 public PsiElement
getPsiElement() {
110 public File
getSelectedIOFile() {
114 public FilePath
[] getSelectedFilePaths() {
118 public FilePath
getSelectedFilePath() {
123 public ChangeList
[] getSelectedChangeLists() {
128 public Change
[] getSelectedChanges() {