Package org.gjt.sp.jedit.search
Class BufferListSet
- java.lang.Object
-
- org.gjt.sp.jedit.search.BufferListSet
-
- All Implemented Interfaces:
SearchFileSet
- Direct Known Subclasses:
AllBufferSet,DirectoryListSet
public abstract class BufferListSet extends java.lang.Object implements SearchFileSet
A file set for searching a user-specified list of buffers.
-
-
Constructor Summary
Constructors Constructor Description BufferListSet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String[]_getFiles(java.awt.Component comp)Note that the paths in the returned list must be fully canonicalized.java.lang.StringgetCode()Returns the BeanShell code that will recreate this file set.intgetFileCount(View view)Returns the number of files in this file set.java.lang.String[]getFiles(View view)Returns all path names in this file set.java.lang.StringgetFirstFile(View view)Returns the first file to search.java.lang.StringgetLastFile(View view)Returns the last file to search.java.lang.StringgetNextFile(View view, java.lang.String path)Returns the next file to search.java.lang.StringgetPrevFile(View view, java.lang.String path)Returns the previous file in the set.voidinvalidateCachedList()
-
-
-
Method Detail
-
getFirstFile
public java.lang.String getFirstFile(View view)
Description copied from interface:SearchFileSetReturns the first file to search.- Specified by:
getFirstFilein interfaceSearchFileSet- Parameters:
view- The view performing the search
-
getLastFile
public java.lang.String getLastFile(View view)
Description copied from interface:SearchFileSetReturns the last file to search.- Specified by:
getLastFilein interfaceSearchFileSet- Parameters:
view- The view performing the search
-
getNextFile
public java.lang.String getNextFile(View view, java.lang.String path)
Description copied from interface:SearchFileSetReturns the next file to search.- Specified by:
getNextFilein interfaceSearchFileSet- Parameters:
view- The view performing the searchpath- The last file searched
-
getPrevFile
public java.lang.String getPrevFile(View view, java.lang.String path)
Description copied from interface:SearchFileSetReturns the previous file in the set.- Specified by:
getPrevFilein interfaceSearchFileSet- Parameters:
view- The view performing the searchpath- The last file searched
-
getFiles
public java.lang.String[] getFiles(View view)
Description copied from interface:SearchFileSetReturns all path names in this file set.- Specified by:
getFilesin interfaceSearchFileSet- Parameters:
view- The view performing the search
-
getFileCount
public int getFileCount(View view)
Description copied from interface:SearchFileSetReturns the number of files in this file set.- Specified by:
getFileCountin interfaceSearchFileSet
-
getCode
public java.lang.String getCode()
Description copied from interface:SearchFileSetReturns the BeanShell code that will recreate this file set.- Specified by:
getCodein interfaceSearchFileSet
-
invalidateCachedList
public void invalidateCachedList()
-
_getFiles
protected abstract java.lang.String[] _getFiles(java.awt.Component comp)
Note that the paths in the returned list must be fully canonicalized.
-
-