1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-08 09:35:23 +02:00

honour the search archives optoin

This commit is contained in:
David McKnight 2006-05-31 19:55:58 +00:00
parent f1fadfdab5
commit eb298559e6

View file

@ -110,6 +110,7 @@ public class LocalSearchHandler implements ISearchHandler
_fs = fileService; _fs = fileService;
_searchString = searchConfig.getSearchString(); _searchString = searchConfig.getSearchString();
boolean includeSubfolders = _searchString.isIncludeSubfolders(); boolean includeSubfolders = _searchString.isIncludeSubfolders();
@ -187,7 +188,7 @@ public class LocalSearchHandler implements ISearchHandler
boolean isDirectory = theFile.isDirectory(); boolean isDirectory = theFile.isDirectory();
// is it an archive? // is it an archive?
boolean isArchive = ArchiveHandlerManager.getInstance().isArchive(theFile); boolean isArchive = ArchiveHandlerManager.getInstance().isArchive(theFile) && _searchString.isIncludeArchives();
String absPath = theFile.getAbsolutePath(); String absPath = theFile.getAbsolutePath();
String compareStr = theFile.getName(); String compareStr = theFile.getName();
@ -299,7 +300,7 @@ public class LocalSearchHandler implements ISearchHandler
// if it is a directory, or an archive, or a virtual directory, then // if it is a directory, or an archive, or a virtual directory, then
// we need to get the // we need to get the
// children and search those // children and search those
if (isDirectory || isArchive || isVirtualDirectory) if (isDirectory || (_searchString.isIncludeArchives() && (isArchive || isVirtualDirectory)))
{ {
if (!hasSearchedDirectory(theFile)) if (!hasSearchedDirectory(theFile))