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 192689 Details for
Bug 338747
Sort categories according to their labels
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]
proposed patch
338747.patch (text/plain), 1.74 KB, created by
Kenn Hussey
on 2011-04-06 22:21:28 EDT
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Kenn Hussey
Created:
2011-04-06 22:21:28 EDT
Size:
1.74 KB
patch
obsolete
>Index: src/org/eclipse/b3/aggregator/p2view/IUPresentation.java >=================================================================== >--- src/org/eclipse/b3/aggregator/p2view/IUPresentation.java (revision 1447) >+++ src/org/eclipse/b3/aggregator/p2view/IUPresentation.java (working copy) >@@ -1,5 +1,5 @@ > /** >- * Copyright (c) 2006-2009, Cloudsmith Inc. >+ * Copyright (c) 2006-2011, Cloudsmith Inc. > * The code, documentation and other materials contained herein have been > * licensed under the Eclipse Public License - v 1.0 by the copyright holder > * listed above, as the Initial Contributor under such license. The text of >@@ -12,7 +12,6 @@ > import java.util.Comparator; > > import org.eclipse.b3.aggregator.InstallableUnitType; >-import org.eclipse.b3.p2.util.IUSelectionComparator; > import org.eclipse.equinox.p2.metadata.IInstallableUnit; > import org.eclipse.equinox.p2.metadata.Version; > >@@ -38,18 +37,23 @@ > * @generated > */ > public interface IUPresentation { >- // Compares IU presentation by id (ascending) and version (descending) >+ // Compares IU presentation by label > static class IUPresentationComparator implements Comparator<IUPresentation> { > > public int compare(IUPresentation iup1, IUPresentation iup2) { >- IInstallableUnit iu1 = iup1 != null >- ? iup1.getInstallableUnit() >+ String label1 = iup1 != null >+ ? iup1.getLabel() > : null; >- IInstallableUnit iu2 = iup2 != null >- ? iup2.getInstallableUnit() >+ String label2 = iup2 != null >+ ? iup2.getLabel() > : null; >- >- return IUSelectionComparator.INSTANCE.compare(iu1, iu2); >+ return label1 != null >+ ? (label2 == null >+ ? 1 >+ : label1.compareTo(label2)) >+ : (label2 != null >+ ? -1 >+ : 0); > } > } >
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 338747
: 192689