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 38805 Details for
Bug 137244
Type Info filter also needs to search using prefix when CamelCase fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
v01-ui.txt (text/plain), 1.54 KB, created by
Frederic Fusier
on 2006-04-18 11:37:41 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2006-04-18 11:37:41 EDT
Size:
1.54 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.ui >Index: core extension/org/eclipse/jdt/internal/corext/util/TypeInfoFilter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/TypeInfoFilter.java,v >retrieving revision 1.10 >diff -u -r1.10 TypeInfoFilter.java >--- core extension/org/eclipse/jdt/internal/corext/util/TypeInfoFilter.java 28 Mar 2006 16:53:40 -0000 1.10 >+++ core extension/org/eclipse/jdt/internal/corext/util/TypeInfoFilter.java 18 Apr 2006 14:46:37 -0000 >@@ -56,14 +56,18 @@ > } > > public boolean matches(String text) { >- if (fMatchKind == SearchPattern.R_PATTERN_MATCH) { >- return fStringMatcher.match(text); >- } else if (fMatchKind == SearchPattern.R_CAMELCASE_MATCH) { >- return SearchPattern.camelCaseMatch(fPattern, text); >- } else if (fMatchKind == SearchPattern.R_EXACT_MATCH) { >- return fPattern.equalsIgnoreCase(text); >- } else /* R_PREFIX_MATCH */ { >- return Strings.startsWithIgnoreCase(text, fPattern); >+ switch (fMatchKind) { >+ case SearchPattern.R_PATTERN_MATCH: >+ return fStringMatcher.match(text); >+ case SearchPattern.R_EXACT_MATCH: >+ return fPattern.equalsIgnoreCase(text); >+ case SearchPattern.R_CAMELCASE_MATCH: >+ if (SearchPattern.camelCaseMatch(fPattern, text)) { >+ return true; >+ } >+ // fall through to prefix match if camel case failed >+ default: >+ return Strings.startsWithIgnoreCase(text, fPattern); > } > } >
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 137244
: 38805