1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 321760.

This commit is contained in:
Sergey Prigogin 2010-08-05 18:10:41 +00:00
parent 93d1052f06
commit 38fed492bf

View file

@ -218,11 +218,12 @@ public abstract class CRenameProcessorDelegate {
fMatches= new ArrayList<CRefactoringMatch>(); fMatches= new ArrayList<CRefactoringMatch>();
TextSearchWrapper txtSearch= getManager().getTextSearch(); TextSearchWrapper txtSearch= getManager().getTextSearch();
Collection<IResource> fileFilter = getFileFilter(); Collection<IResource> fileFilter = getFileFilter();
if (!fileFilter.contains(file)) { if (fileFilter != null && !fileFilter.contains(file)) {
fileFilter.add(file); fileFilter.add(file);
} }
IStatus stat= txtSearch.searchWord(getSearchScope(), file, getSelectedWorkingSet(), 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); getArgument().getName(), new SubProgressMonitor(monitor, 1), fMatches);
if (monitor.isCanceled()) { if (monitor.isCanceled()) {
throw new OperationCanceledException(); throw new OperationCanceledException();