class WorkspaceScanner {

    public void fullScan(PropertyFileAcceptor acceptor, File baseDir, PropertyScanner scanner, ScanConfiguration config, IProgressMonitor monitor) {

        FileSet fs = createFileSet(config);
        fs.setDir(baseDir);
        SubMonitor subMon = SubMonitor.convert(monitor, "Scanning", 100);
        String masterLocale = config.getMasterLocale();
        if (masterLocale != null && masterLocale.isEmpty())
            masterLocale = null;
        if (baseDir.exists()) {
            DirectoryScanner ds = fs.getDirectoryScanner(new org.apache.tools.ant.Project());
            subMon.worked(10);
            String[] files = ds.getIncludedFiles();
            subMon.setWorkRemaining(files.length);
            for (String f : files) {
            	checkCanceled(monitor);
                File file = new File(baseDir, f);
                if(scanner.isTemplate(file, config.getMasterLocale())) {
                    subMon.subTask(f);
                    acceptor.newMatch(file);
                    subMon.worked(1);
                }
            }
        }
        if(monitor!=null)
            monitor.done();
    }

    public  WorkspaceScanner();

}