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 153523 Details for
Bug 296617
[search] TypeReferenceLocator does not update the java doc flag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
proposed fix
search.txt (text/plain), 1.66 KB, created by
Mohammed Mostafa
on 2009-12-01 15:15:58 EST
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Mohammed Mostafa
Created:
2009-12-01 15:15:58 EST
Size:
1.66 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java,v >retrieving revision 1.68 >diff -u -r1.68 TypeReferenceLocator.java >--- search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java 28 Apr 2009 16:53:03 -0000 1.68 >+++ search/org/eclipse/jdt/internal/core/search/matching/TypeReferenceLocator.java 1 Dec 2009 20:19:15 -0000 >@@ -25,6 +25,7 @@ > > protected TypeReferencePattern pattern; > protected boolean isDeclarationOfReferencedTypesPattern; >+private boolean isJavaDoc = false; > > private final int fineGrain; > >@@ -517,6 +518,11 @@ > } > protected void reportDeclaration(ASTNode reference, IJavaElement element, MatchLocator locator, SimpleSet knownTypes) throws CoreException { > int maxType = -1; >+ if ((reference.bits & ASTNode.InsideJavadoc) !=0){ >+ this.isJavaDoc = true; >+ }else{ >+ this.isJavaDoc = false; >+ } > TypeBinding typeBinding = null; > if (reference instanceof TypeReference) { > typeBinding = ((TypeReference) reference).resolvedType; >@@ -588,6 +594,7 @@ > TypeDeclaration typeDecl = scope.referenceContext; > int offset = typeDecl.sourceStart; > this.match = new TypeDeclarationMatch(((JavaElement) type).resolved(typeBinding), SearchMatch.A_ACCURATE, offset, typeDecl.sourceEnd-offset+1, locator.getParticipant(), resource); >+ this.match.setInsideDocComment(this.isJavaDoc); > locator.report(this.match); > } > }
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 Raw
Actions:
View
Attachments on
bug 296617
: 153523 |
153614
|
153615
|
155087