Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 11006 Details for
Bug 62697
Need to know if a package reference match is in Javadoc or in Code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Implementation for new API on PackageReferenceMatch
v01.txt (text/plain), 2.75 KB, created by
Frederic Fusier
on 2004-05-24 09:37:05 EDT
(
hide
)
Description:
Implementation for new API on PackageReferenceMatch
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2004-05-24 09:37:05 EDT
Size:
2.75 KB
patch
obsolete
>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(
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 62697
:
11006
|
11007
|
11145
|
11147
|
11153