Module jEdit

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 Object implements SearchFileSet
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 Details

    • BufferListSet

      public BufferListSet()
  • Method Details

    • getFirstFile

      public String getFirstFile(View view)
      Description copied from interface: SearchFileSet
      Returns the first file to search.
      Specified by:
      getFirstFile in interface SearchFileSet
      Parameters:
      view - The view performing the search
    • getLastFile

      public String getLastFile(View view)
      Description copied from interface: SearchFileSet
      Returns the last file to search.
      Specified by:
      getLastFile in interface SearchFileSet
      Parameters:
      view - The view performing the search
    • getNextFile

      public String getNextFile(View view, String path)
      Description copied from interface: SearchFileSet
      Returns the next file to search.
      Specified by:
      getNextFile in interface SearchFileSet
      Parameters:
      view - The view performing the search
      path - The last file searched
    • getPrevFile

      public String getPrevFile(View view, String path)
      Description copied from interface: SearchFileSet
      Returns the previous file in the set.
      Specified by:
      getPrevFile in interface SearchFileSet
      Parameters:
      view - The view performing the search
      path - The last file searched
    • getFiles

      public String[] getFiles(View view)
      Description copied from interface: SearchFileSet
      Returns all path names in this file set.
      Specified by:
      getFiles in interface SearchFileSet
      Parameters:
      view - The view performing the search
    • getFileCount

      public int getFileCount(View view)
      Description copied from interface: SearchFileSet
      Returns the number of files in this file set.
      Specified by:
      getFileCount in interface SearchFileSet
    • getCode

      public String getCode()
      Description copied from interface: SearchFileSet
      Returns the BeanShell code that will recreate this file set.
      Specified by:
      getCode in interface SearchFileSet
    • invalidateCachedList

      public void invalidateCachedList()
    • _getFiles

      protected abstract String[] _getFiles(Component comp)
      Note that the paths in the returned list must be fully canonicalized.