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 229780 Details for
Bug 360468
Improve 'Open Resource' dialog filtering sort order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Possible fix
Bug-360468--Improve-Open-Resource-dialog-filtering-s.patch (text/plain), 1.59 KB, created by
Curtis Windatt
on 2013-04-16 17:20:36 EDT
(
hide
)
Description:
Possible fix
Filename:
MIME Type:
Creator:
Curtis Windatt
Created:
2013-04-16 17:20:36 EDT
Size:
1.59 KB
patch
obsolete
>diff --git a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java >index d40dee2..c8356cb 100644 >--- a/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java >+++ b/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java >@@ -69,6 +69,7 @@ > import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; > import org.eclipse.ui.internal.ide.IIDEHelpContextIds; > import org.eclipse.ui.internal.ide.model.ResourceFactory; >+import org.eclipse.ui.internal.quickaccess.CamelUtil; > import org.eclipse.ui.model.WorkbenchLabelProvider; > import org.eclipse.ui.statushandlers.StatusManager; > >@@ -470,6 +471,21 @@ > int s2Dot = s2.lastIndexOf('.'); > String n1 = s1Dot == -1 ? s1 : s1.substring(0, s1Dot); > String n2 = s2Dot == -1 ? s2 : s2.substring(0, s2Dot); >+ >+ // If we are doing a camel case search, put shorter camel cases first (Bug 360468) >+ if (n1.length() > 0 && Character.isUpperCase(n1.charAt(0)) && n2.length() > 0 && Character.isUpperCase(n2.charAt(0))){ >+ int camelCase1 = CamelUtil.getCamelCase(n1).length(); >+ int camelCase2 = CamelUtil.getCamelCase(n2).length(); >+ if (camelCase1 > 0 && camelCase2 > 0){ >+ if (camelCase1 < camelCase2){ >+ return -1; >+ } >+ if (camelCase1 > camelCase2){ >+ return 1; >+ } >+ } >+ } >+ > int comparability = collator.compare(n1, n2); > if (comparability != 0) > return comparability;
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 360468
: 229780