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 27853 Details for
Bug 110596
[assist] don't rank java.lang types lower if a simple name duplicate exists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
more general patch
patchjdtcore001.txt (text/plain), 1.82 KB, created by
David Audel
on 2005-10-05 06:17:42 EDT
(
hide
)
Description:
more general patch
Filename:
MIME Type:
Creator:
David Audel
Created:
2005-10-05 06:17:42 EDT
Size:
1.82 KB
patch
obsolete
>Index: codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java,v >retrieving revision 1.251 >diff -u -r1.251 CompletionEngine.java >--- codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java 29 Aug 2005 16:08:23 -0000 1.251 >+++ codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java 5 Oct 2005 09:12:59 -0000 >@@ -494,8 +494,37 @@ > } > } > } >- } else { >- foundType.mustBeQualified = true; >+ } else if(!foundType.mustBeQualified){ >+ done : for (int j = 0; j < this.onDemandImportCacheCount; j++) { >+ ImportBinding importBinding = this.onDemandImportsCache[j]; >+ >+ char[][] importName = importBinding.compoundName; >+ char[] importFlatName = CharOperation.concatWith(importName, '.'); >+ >+ if(fullyQualifiedEnclosingTypeOrPackageName == null) { >+ if(enclosingTypeNames != null && enclosingTypeNames.length != 0) { >+ fullyQualifiedEnclosingTypeOrPackageName = >+ CharOperation.concat( >+ packageName, >+ flatEnclosingTypeNames, >+ '.'); >+ } else { >+ fullyQualifiedEnclosingTypeOrPackageName = >+ packageName; >+ } >+ } >+ if(CharOperation.equals(fullyQualifiedEnclosingTypeOrPackageName, importFlatName)) { >+ if(importBinding.isStatic()) { >+ if((modifiers & IConstants.AccStatic) != 0) { >+ foundType.mustBeQualified = true; >+ break done; >+ } >+ } else { >+ foundType.mustBeQualified = true; >+ break done; >+ } >+ } >+ } > } > proposeType( > packageName,
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 110596
:
27513
| 27853