java.lang.Object
org.gjt.sp.jedit.search.BufferListSet
- All Implemented Interfaces:
SearchFileSet
- Direct Known Subclasses:
AllBufferSet
,DirectoryListSet
A file set for searching a user-specified list of buffers.
- Version:
- $Id: BufferListSet.java 25108 2020-03-31 22:41:49Z kpouer $
- Author:
- Slava Pestov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String[]
Note that the paths in the returned list must be fully canonicalized.getCode()
Returns the BeanShell code that will recreate this file set.int
getFileCount
(View view) Returns the number of files in this file set.String[]
Returns all path names in this file set.getFirstFile
(View view) Returns the first file to search.getLastFile
(View view) Returns the last file to search.getNextFile
(View view, String path) Returns the next file to search.getPrevFile
(View view, String path) Returns the previous file in the set.void
-
Constructor Details
-
BufferListSet
public BufferListSet()
-
-
Method Details
-
getFirstFile
Description copied from interface:SearchFileSet
Returns the first file to search.- Specified by:
getFirstFile
in interfaceSearchFileSet
- Parameters:
view
- The view performing the search
-
getLastFile
Description copied from interface:SearchFileSet
Returns the last file to search.- Specified by:
getLastFile
in interfaceSearchFileSet
- Parameters:
view
- The view performing the search
-
getNextFile
Description copied from interface:SearchFileSet
Returns the next file to search.- Specified by:
getNextFile
in interfaceSearchFileSet
- Parameters:
view
- The view performing the searchpath
- The last file searched
-
getPrevFile
Description copied from interface:SearchFileSet
Returns the previous file in the set.- Specified by:
getPrevFile
in interfaceSearchFileSet
- Parameters:
view
- The view performing the searchpath
- The last file searched
-
getFiles
Description copied from interface:SearchFileSet
Returns all path names in this file set.- Specified by:
getFiles
in interfaceSearchFileSet
- Parameters:
view
- The view performing the search
-
getFileCount
Description copied from interface:SearchFileSet
Returns the number of files in this file set.- Specified by:
getFileCount
in interfaceSearchFileSet
-
getCode
Description copied from interface:SearchFileSet
Returns the BeanShell code that will recreate this file set.- Specified by:
getCode
in interfaceSearchFileSet
-
invalidateCachedList
public void invalidateCachedList() -
_getFiles
Note that the paths in the returned list must be fully canonicalized.
-