projectviewer.action
Class SearchAction.NodeFileSet

java.lang.Object
  extended by org.gjt.sp.jedit.search.BufferListSet
      extended by org.gjt.sp.jedit.search.DirectoryListSet
          extended by projectviewer.action.SearchAction.NodeFileSet
All Implemented Interfaces:
org.gjt.sp.jedit.search.SearchFileSet
Enclosing class:
SearchAction

public static class SearchAction.NodeFileSet
extends org.gjt.sp.jedit.search.DirectoryListSet

Implements a SearchFileSet representing files that are children of a given node and its children.

Since:
PV 2.1.0 (was private before)

Constructor Summary
SearchAction.NodeFileSet(VPTNode node)
           
 
Method Summary
protected  java.lang.String[] _getFiles(java.awt.Component comp)
          Returns an array with the files to be searched.
 java.lang.String getDirectory()
          Returns the path to the node.
 void setDirectory(java.lang.String directory)
          Sets the directory where to search inside the project.
 
Methods inherited from class org.gjt.sp.jedit.search.DirectoryListSet
getCode, getFileFilter, isRecursive, setFileFilter, setRecursive
 
Methods inherited from class org.gjt.sp.jedit.search.BufferListSet
getFileCount, getFiles, getFirstFile, getLastFile, getNextFile, getPrevFile, invalidateCachedList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchAction.NodeFileSet

public SearchAction.NodeFileSet(VPTNode node)
Method Detail

getDirectory

public java.lang.String getDirectory()
Returns the path to the node.

Overrides:
getDirectory in class org.gjt.sp.jedit.search.DirectoryListSet

_getFiles

protected java.lang.String[] _getFiles(java.awt.Component comp)
Returns an array with the files to be searched.

Overrides:
_getFiles in class org.gjt.sp.jedit.search.DirectoryListSet

setDirectory

public void setDirectory(java.lang.String directory)
Sets the directory where to search inside the project. This method is really unoptimized since PV doesn't keep a mapping of directory paths to VPTNode instances.

Overrides:
setDirectory in class org.gjt.sp.jedit.search.DirectoryListSet
Parameters:
directory - Directory where to perform the search.