Class FilesFinder

  • All Implemented Interfaces:
    org.eclipse.core.resources.IResourceVisitor

    public class FilesFinder
    extends java.lang.Object
    implements org.eclipse.core.resources.IResourceVisitor
    Visitor looking for all the files with given extensions.
    • Constructor Summary

      Constructors 
      Constructor Description
      FilesFinder​(java.lang.String[] pExtensions)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addExclude​(org.eclipse.core.runtime.IPath pDistPath)
      Add a path to exclude in the search.
      java.util.ArrayList<org.eclipse.core.resources.IFile> getResults()  
      boolean visit​(org.eclipse.core.resources.IResource pResource)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilesFinder

        public FilesFinder​(java.lang.String[] pExtensions)
        Constructor.
        Parameters:
        pExtensions - the file extensions to match
    • Method Detail

      • getResults

        public java.util.ArrayList<org.eclipse.core.resources.IFile> getResults()
        Returns:
        the found files
      • visit

        public boolean visit​(org.eclipse.core.resources.IResource pResource)
                      throws org.eclipse.core.runtime.CoreException
        Specified by:
        visit in interface org.eclipse.core.resources.IResourceVisitor
        Throws:
        org.eclipse.core.runtime.CoreException
      • addExclude

        public void addExclude​(org.eclipse.core.runtime.IPath pDistPath)
        Add a path to exclude in the search.
        Parameters:
        pDistPath - the path to exclude