View | Details | Raw Unified | Return to bug 237123 | Differences between
and this patch

Collapse All | Expand All

(-)search/org/eclipse/jdt/internal/core/search/matching/AndLocator.java (-2 / +2 lines)
Lines 214-220 Link Here
214
	}
214
	}
215
	weakestPattern.matchReportImportRef(importRef, binding, element, accuracy, locator);
215
	weakestPattern.matchReportImportRef(importRef, binding, element, accuracy, locator);
216
}
216
}
217
protected void matchReportReference(ASTNode reference, IJavaElement element, IJavaElement localElement, IJavaElement[] otherElements, Binding elementBinding, int accuracy, MatchLocator locator) throws CoreException {
217
protected void matchReportReference(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, MatchLocator locator) throws CoreException {
218
	PatternLocator weakestPattern = null;
218
	PatternLocator weakestPattern = null;
219
	int level = IMPOSSIBLE_MATCH;
219
	int level = IMPOSSIBLE_MATCH;
220
	for (int i = 0, length = this.patternLocators.length; i < length; i++) {
220
	for (int i = 0, length = this.patternLocators.length; i < length; i++) {
Lines 226-232 Link Here
226
			level = newLevel;
226
			level = newLevel;
227
		}
227
		}
228
	}
228
	}
229
	weakestPattern.matchReportReference(reference, element, localElement, otherElements, elementBinding, accuracy, locator);
229
	weakestPattern.matchReportReference(reference, element, elementBinding, accuracy, locator);
230
}
230
}
231
public int resolveLevel(ASTNode node) {
231
public int resolveLevel(ASTNode node) {
232
	int level = ACCURATE_MATCH;
232
	int level = ACCURATE_MATCH;
(-)search/org/eclipse/jdt/internal/core/search/matching/OrLocator.java (-2 / +2 lines)
Lines 345-351 Link Here
345
	if (closestPattern != null)
345
	if (closestPattern != null)
346
		closestPattern.matchReportImportRef(importRef, binding, element, accuracy, locator);
346
		closestPattern.matchReportImportRef(importRef, binding, element, accuracy, locator);
347
}
347
}
348
protected void matchReportReference(ASTNode reference, IJavaElement element, IJavaElement localElement, IJavaElement[] otherElements, Binding elementBinding, int accuracy, MatchLocator locator) throws CoreException {
348
protected void matchReportReference(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, MatchLocator locator) throws CoreException {
349
	PatternLocator closestPattern = null;
349
	PatternLocator closestPattern = null;
350
	int level = IMPOSSIBLE_MATCH;
350
	int level = IMPOSSIBLE_MATCH;
351
	for (int i = 0, length = this.patternLocators.length; i < length; i++) {
351
	for (int i = 0, length = this.patternLocators.length; i < length; i++) {
Lines 358-364 Link Here
358
		}
358
		}
359
	}
359
	}
360
	if (closestPattern != null)
360
	if (closestPattern != null)
361
		closestPattern.matchReportReference(reference, element, localElement, otherElements, elementBinding, accuracy, locator);
361
		closestPattern.matchReportReference(reference, element, elementBinding, accuracy, locator);
362
}
362
}
363
public SearchMatch newDeclarationMatch(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, int length, MatchLocator locator) {
363
public SearchMatch newDeclarationMatch(ASTNode reference, IJavaElement element, Binding elementBinding, int accuracy, int length, MatchLocator locator) {
364
	PatternLocator closestPattern = null;
364
	PatternLocator closestPattern = null;

Return to bug 237123