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:
parent
f1fadfdab5
commit
eb298559e6
1 changed files with 3 additions and 2 deletions
|
@ -110,6 +110,7 @@ public class LocalSearchHandler implements ISearchHandler
|
|||
_fs = fileService;
|
||||
|
||||
_searchString = searchConfig.getSearchString();
|
||||
|
||||
|
||||
boolean includeSubfolders = _searchString.isIncludeSubfolders();
|
||||
|
||||
|
@ -187,7 +188,7 @@ public class LocalSearchHandler implements ISearchHandler
|
|||
boolean isDirectory = theFile.isDirectory();
|
||||
|
||||
// is it an archive?
|
||||
boolean isArchive = ArchiveHandlerManager.getInstance().isArchive(theFile);
|
||||
boolean isArchive = ArchiveHandlerManager.getInstance().isArchive(theFile) && _searchString.isIncludeArchives();
|
||||
|
||||
String absPath = theFile.getAbsolutePath();
|
||||
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
|
||||
// we need to get the
|
||||
// children and search those
|
||||
if (isDirectory || isArchive || isVirtualDirectory)
|
||||
if (isDirectory || (_searchString.isIncludeArchives() && (isArchive || isVirtualDirectory)))
|
||||
{
|
||||
|
||||
if (!hasSearchedDirectory(theFile))
|
||||
|
|
Loading…
Add table
Reference in a new issue