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 68526 Details for
Bug 188247
[content assist] Code Completion for static importing fields not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix from David for 1.
cpatch.txt (text/plain), 1.75 KB, created by
Dani Megert
on 2007-05-24 05:18:07 EDT
(
hide
)
Description:
Fix from David for 1.
Filename:
MIME Type:
Creator:
Dani Megert
Created:
2007-05-24 05:18:07 EDT
Size:
1.75 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java,v >retrieving revision 1.328 >diff -u -r1.328 CompletionEngine.java >--- codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java 14 May 2007 17:04:00 -0000 1.328 >+++ codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java 24 May 2007 09:17:36 -0000 >@@ -2028,9 +2028,16 @@ > } > if(importReference.isStatic()) { > if(!this.requestor.isIgnored(CompletionProposal.FIELD_REF)) { >+ long positions = importReference.sourcePositions[importReference.sourcePositions.length - 1]; >+ setSourceRange((int) (positions >>> 32), (int) positions); >+ > this.findImportsOfStaticFields(lastToken, ref); > } > if(!this.requestor.isIgnored(CompletionProposal.METHOD_NAME_REFERENCE)) { >+ setSourceRange( >+ importReference.sourceStart, >+ importReference.declarationSourceEnd); >+ > this.findImportsOfStaticMethods(lastToken, ref); > } > } >@@ -3939,12 +3946,7 @@ > && !field.canBeSeenBy(this.unitScope.fPackage)) > continue next; > >- char[] completionName = CharOperation.concat( >- field.declaringClass.qualifiedPackageName(), >- '.', >- field.declaringClass.qualifiedSourceName(), >- '.', >- field.name); >+ char[] completionName = field.name; > > completionName = CharOperation.concat(completionName, SEMICOLON); >
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 188247
:
68526
|
68527
|
68541
|
68565