public class PredefinedSearchScopeProviderImpl extends PredefinedSearchScopeProvider
Constructor and Description |
---|
PredefinedSearchScopeProviderImpl() |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Set<VirtualFile> |
collectFiles(java.util.Set<? extends Usage> usages,
boolean findFirst) |
java.util.List<SearchScope> |
getPredefinedScopes(Project project,
DataContext dataContext,
boolean suggestSearchInLibs,
boolean prevSearchFiles,
boolean currentSelection,
boolean usageView,
boolean showEmptyScopes) |
static GlobalSearchScope |
recentFilesScope(Project project,
boolean changedOnly) |
getInstance
public java.util.List<SearchScope> getPredefinedScopes(Project project, DataContext dataContext, boolean suggestSearchInLibs, boolean prevSearchFiles, boolean currentSelection, boolean usageView, boolean showEmptyScopes)
getPredefinedScopes
in class PredefinedSearchScopeProvider
suggestSearchInLibs
- add Project and Libraries scopeprevSearchFiles
- add Files in Previous Search Result instead of Previous Search Result (only if usageView == true
)currentSelection
- add Selection scope if text is selected in the editorusageView
- add Previous Search Result and Hierarchy 'X' (visible nodes only) scopes if there are search results or hierarchies openshowEmptyScopes
- add Current File and Open Files scopes even if there are no files openpublic static GlobalSearchScope recentFilesScope(Project project, boolean changedOnly)
protected static java.util.Set<VirtualFile> collectFiles(java.util.Set<? extends Usage> usages, boolean findFirst)