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 135236 Details for
Bug 274330
[ui] Inconsistent swapping of repository contents
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]
patch
bug274330.patch (text/plain), 1.43 KB, created by
Susan McCourt
on 2009-05-11 18:35:42 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Susan McCourt
Created:
2009-05-11 18:35:42 EDT
Size:
1.43 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.equinox.p2.ui >Index: src/org/eclipse/equinox/internal/provisional/p2/ui/dialogs/RepositorySelectionGroup.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/dialogs/RepositorySelectionGroup.java,v >retrieving revision 1.9 >diff -u -r1.9 RepositorySelectionGroup.java >--- src/org/eclipse/equinox/internal/provisional/p2/ui/dialogs/RepositorySelectionGroup.java 11 May 2009 21:49:28 -0000 1.9 >+++ src/org/eclipse/equinox/internal/provisional/p2/ui/dialogs/RepositorySelectionGroup.java 11 May 2009 22:29:04 -0000 >@@ -395,6 +395,10 @@ > int sortEnd = hasLocalSites ? strings.length - 2 : strings.length - 1; > if (sortStart >= sortEnd) > return; >+ final HashMap uriToString = new HashMap(); >+ for (int i = sortStart; i <= sortEnd; i++) { >+ uriToString.put(locations[i], strings[i]); >+ } > final Collator collator = Collator.getInstance(Locale.getDefault()); > Comparator stringComparator = new Comparator() { > public int compare(Object a, Object b) { >@@ -403,7 +407,7 @@ > }; > Comparator uriComparator = new Comparator() { > public int compare(Object a, Object b) { >- return collator.compare(getSiteString((URI) a), getSiteString((URI) b)); >+ return collator.compare(uriToString.get(a), uriToString.get(b)); > } > }; >
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 274330
: 135236