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
.ide
.util
;
18 import com
.intellij
.openapi
.components
.ServiceManager
;
19 import com
.intellij
.openapi
.fileTypes
.FileType
;
20 import com
.intellij
.openapi
.project
.Project
;
21 import com
.intellij
.openapi
.util
.Condition
;
22 import com
.intellij
.psi
.PsiClass
;
23 import com
.intellij
.psi
.PsiFile
;
24 import com
.intellij
.psi
.search
.GlobalSearchScope
;
25 import org
.jetbrains
.annotations
.NotNull
;
26 import org
.jetbrains
.annotations
.Nullable
;
32 public abstract class TreeClassChooserFactory
{
34 public static TreeClassChooserFactory
getInstance(Project project
) {
35 return ServiceManager
.getService(project
, TreeClassChooserFactory
.class);
40 public abstract TreeClassChooser
createWithInnerClassesScopeChooser(String title
,
41 GlobalSearchScope scope
,
42 final TreeClassChooser
.ClassFilter classFilter
,
43 PsiClass initialClass
);
47 public abstract TreeClassChooser
createNoInnerClassesScopeChooser(String title
,
48 GlobalSearchScope scope
,
49 TreeClassChooser
.ClassFilter classFilter
,
50 PsiClass initialClass
);
54 public abstract TreeClassChooser
createProjectScopeChooser(String title
, PsiClass initialClass
);
58 public abstract TreeClassChooser
createProjectScopeChooser(String title
);
62 public abstract TreeClassChooser
createAllProjectScopeChooser(String title
);
66 public abstract TreeClassChooser
createInheritanceClassChooser(String title
,
67 GlobalSearchScope scope
,
71 Condition
<?
super PsiClass
> additionalCondition
);
74 public abstract TreeClassChooser
createInheritanceClassChooser(String title
,
75 GlobalSearchScope scope
,
77 PsiClass initialClass
);
80 public abstract TreeClassChooser
createInheritanceClassChooser(String title
,
81 GlobalSearchScope scope
,
83 PsiClass initialClass
,
84 TreeClassChooser
.ClassFilter classFilter
);
88 public abstract TreeFileChooser
createFileChooser(@NotNull String title
,
89 @Nullable PsiFile initialFile
,
90 @Nullable FileType fileType
,
91 @Nullable TreeFileChooser
.PsiFileFilter filter
);
95 public abstract TreeFileChooser
createFileChooser(@NotNull String title
,
96 @Nullable PsiFile initialFile
,
97 @Nullable FileType fileType
,
98 @Nullable TreeFileChooser
.PsiFileFilter filter
,
99 boolean disableStructureProviders
);
103 public abstract TreeFileChooser
createFileChooser(@NotNull String title
,
104 @Nullable PsiFile initialFile
,
105 @Nullable FileType fileType
,
106 @Nullable TreeFileChooser
.PsiFileFilter filter
,
107 boolean disableStructureProviders
,
108 boolean showLibraryContents
);