Index: search/org/eclipse/jdt/core/search/PackageReferenceMatch.java =================================================================== RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/PackageReferenceMatch.java,v retrieving revision 1.7 diff -u -r1.7 PackageReferenceMatch.java --- search/org/eclipse/jdt/core/search/PackageReferenceMatch.java 22 Apr 2004 09:58:25 -0000 1.7 +++ search/org/eclipse/jdt/core/search/PackageReferenceMatch.java 24 May 2004 12:53:21 -0000 @@ -24,6 +24,8 @@ */ public class PackageReferenceMatch extends SearchMatch { + private boolean insideDocComment; + /** * Creates a new package reference match. * @@ -31,11 +33,20 @@ * @param accuracy one of A_ACCURATE or A_INACCURATE * @param offset the offset the match starts at, or -1 if unknown * @param length the length of the match, or -1 if unknown + * @param insideDocComment whether the match is inside a doc comment * @param participant the search participant that created the match * @param resource the resource of the element */ - public PackageReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, SearchParticipant participant, IResource resource) { + public PackageReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, IResource resource) { super(enclosingElement, accuracy, offset, length, participant, resource); + this.insideDocComment = insideDocComment; + } + + /** + * @see org.eclipse.jdt.core.search.SearchMatch#isInsideDocComment() + */ + public final boolean isInsideDocComment() { + return this.insideDocComment; } } Index: search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java =================================================================== RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java,v retrieving revision 1.181 diff -u -r1.181 MatchLocator.java --- search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java 16 May 2004 20:45:40 -0000 1.181 +++ search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java 24 May 2004 12:53:21 -0000 @@ -1054,7 +1054,8 @@ ASTNode reference) { SearchParticipant participant = getParticipant(); IResource resource = this.currentPossibleMatch.resource; - return new PackageReferenceMatch(enclosingElement, accuracy, offset, length, participant, resource); + boolean insideDocComment = (reference.bits & ASTNode.InsideJavadoc) != 0; + return new PackageReferenceMatch(enclosingElement, accuracy, offset, length, insideDocComment, participant, resource); } public SearchMatch newTypeReferenceMatch(