mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 321760.
This commit is contained in:
parent
93d1052f06
commit
38fed492bf
1 changed files with 3 additions and 2 deletions
|
@ -218,11 +218,12 @@ public abstract class CRenameProcessorDelegate {
|
|||
fMatches= new ArrayList<CRefactoringMatch>();
|
||||
TextSearchWrapper txtSearch= getManager().getTextSearch();
|
||||
Collection<IResource> fileFilter = getFileFilter();
|
||||
if (!fileFilter.contains(file)) {
|
||||
if (fileFilter != null && !fileFilter.contains(file)) {
|
||||
fileFilter.add(file);
|
||||
}
|
||||
IStatus stat= txtSearch.searchWord(getSearchScope(), file, getSelectedWorkingSet(),
|
||||
fileFilter.toArray(new IResource[fileFilter.size()]), getManager().getCCppPatterns(),
|
||||
fileFilter != null ? fileFilter.toArray(new IResource[fileFilter.size()]) : null,
|
||||
getManager().getCCppPatterns(),
|
||||
getArgument().getName(), new SubProgressMonitor(monitor, 1), fMatches);
|
||||
if (monitor.isCanceled()) {
|
||||
throw new OperationCanceledException();
|
||||
|
|
Loading…
Add table
Reference in a new issue