Lines 1149-1155
Link Here
|
1149 |
this.progressMonitor.beginTask("", searchDocuments.length); //$NON-NLS-1$ |
1149 |
this.progressMonitor.beginTask("", searchDocuments.length); //$NON-NLS-1$ |
1150 |
} |
1150 |
} |
1151 |
|
1151 |
|
1152 |
// initialize pattern for polymorphic search (ie. method reference pattern) |
1152 |
// initialize pattern for polymorphic search (i.e. method reference pattern) |
1153 |
this.patternLocator.initializePolymorphicSearch(this); |
1153 |
this.patternLocator.initializePolymorphicSearch(this); |
1154 |
|
1154 |
|
1155 |
JavaProject previousJavaProject = null; |
1155 |
JavaProject previousJavaProject = null; |
Lines 1833-1839
Link Here
|
1833 |
if (match.getRule() == 0) return; |
1833 |
if (match.getRule() == 0) return; |
1834 |
if (!encloses((IJavaElement)match.getElement())) return; |
1834 |
if (!encloses((IJavaElement)match.getElement())) return; |
1835 |
|
1835 |
|
1836 |
// If there's type arguments, look for end (ie. char '>') of last one. |
1836 |
// If there's type arguments, look for end (i.e. char '>') of last one. |
1837 |
int start = match.getOffset(); |
1837 |
int start = match.getOffset(); |
1838 |
if (typeArguments != null && typeArguments.length > 0) { |
1838 |
if (typeArguments != null && typeArguments.length > 0) { |
1839 |
boolean isErasureMatch= (this.pattern instanceof OrPattern) ? ((OrPattern)this.pattern).isErasureMatch() : ((JavaSearchPattern)this.pattern).isErasureMatch(); |
1839 |
boolean isErasureMatch= (this.pattern instanceof OrPattern) ? ((OrPattern)this.pattern).isErasureMatch() : ((JavaSearchPattern)this.pattern).isErasureMatch(); |
Lines 1889-1895
Link Here
|
1889 |
if (match.getRule() == 0) return; |
1889 |
if (match.getRule() == 0) return; |
1890 |
if (!encloses((IJavaElement)match.getElement())) return; |
1890 |
if (!encloses((IJavaElement)match.getElement())) return; |
1891 |
|
1891 |
|
1892 |
// If there's type arguments, look for end (ie. char '>') of last one. |
1892 |
// If there's type arguments, look for end (i.e. char '>') of last one. |
1893 |
int end = typeRef.sourceEnd; |
1893 |
int end = typeRef.sourceEnd; |
1894 |
if (typeArguments != null) { |
1894 |
if (typeArguments != null) { |
1895 |
|
1895 |
|
Lines 2081-2087
Link Here
|
2081 |
} |
2081 |
} |
2082 |
/** |
2082 |
/** |
2083 |
* Visit the given method declaration and report the nodes that match exactly the |
2083 |
* Visit the given method declaration and report the nodes that match exactly the |
2084 |
* search pattern (ie. the ones in the matching nodes set) |
2084 |
* search pattern (i.e. the ones in the matching nodes set) |
2085 |
* Note that the method declaration has already been checked. |
2085 |
* Note that the method declaration has already been checked. |
2086 |
*/ |
2086 |
*/ |
2087 |
protected void reportMatching(AbstractMethodDeclaration method, TypeDeclaration type, IJavaElement parent, int accuracy, boolean typeInHierarchy, MatchingNodeSet nodeSet) throws CoreException { |
2087 |
protected void reportMatching(AbstractMethodDeclaration method, TypeDeclaration type, IJavaElement parent, int accuracy, boolean typeInHierarchy, MatchingNodeSet nodeSet) throws CoreException { |
Lines 2396-2402
Link Here
|
2396 |
} |
2396 |
} |
2397 |
/** |
2397 |
/** |
2398 |
* Visit the given field declaration and report the nodes that match exactly the |
2398 |
* Visit the given field declaration and report the nodes that match exactly the |
2399 |
* search pattern (ie. the ones in the matching nodes set) |
2399 |
* search pattern (i.e. the ones in the matching nodes set) |
2400 |
*/ |
2400 |
*/ |
2401 |
protected void reportMatching(FieldDeclaration field, FieldDeclaration[] otherFields, TypeDeclaration type, IJavaElement parent, int accuracy, boolean typeInHierarchy, MatchingNodeSet nodeSet) throws CoreException { |
2401 |
protected void reportMatching(FieldDeclaration field, FieldDeclaration[] otherFields, TypeDeclaration type, IJavaElement parent, int accuracy, boolean typeInHierarchy, MatchingNodeSet nodeSet) throws CoreException { |
2402 |
IJavaElement enclosingElement = null; |
2402 |
IJavaElement enclosingElement = null; |
Lines 2524-2530
Link Here
|
2524 |
} |
2524 |
} |
2525 |
/** |
2525 |
/** |
2526 |
* Visit the given type declaration and report the nodes that match exactly the |
2526 |
* Visit the given type declaration and report the nodes that match exactly the |
2527 |
* search pattern (ie. the ones in the matching nodes set) |
2527 |
* search pattern (i.e. the ones in the matching nodes set) |
2528 |
*/ |
2528 |
*/ |
2529 |
protected void reportMatching(TypeDeclaration type, IJavaElement parent, int accuracy, MatchingNodeSet nodeSet, int occurrenceCount) throws CoreException { |
2529 |
protected void reportMatching(TypeDeclaration type, IJavaElement parent, int accuracy, MatchingNodeSet nodeSet, int occurrenceCount) throws CoreException { |
2530 |
// create type handle |
2530 |
// create type handle |