Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 260055 - [plug-in registry] sort services when view grouped by services
Summary: [plug-in registry] sort services when view grouped by services
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.5 M5   Edit
Assignee: Chris Aniszczyk CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 10:55 EST by Jacek Pospychala CLA
Modified: 2009-01-06 11:59 EST (History)
1 user (show)

See Also:


Attachments
pde-runtime-sorting-1.patch (3.79 KB, patch)
2009-01-06 11:31 EST, Wolfgang Schell CLA
caniszczyk: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Pospychala CLA 2009-01-06 10:55:05 EST
spin-off bug 220110 comment 18 :
Wolfgang Schell  2009-01-06 08:25:45 -0400

Is there a way to sort the services? As the service interfaces are returned as
an array, the default ViewerComparator might compare them by Object.equals(),
which probably is not the desired effect. How about sorting by the first
class/interface name? 
I'll attach a patch which changes the ViewerComparator in RegistryBrowser, and
implements Comparable in ServicesFolder and ServiceRegistration.
Comment 1 Wolfgang Schell CLA 2009-01-06 11:31:20 EST
Created attachment 121647 [details]
pde-runtime-sorting-1.patch

This patch provides sorting for services based on the first class or interface (and everything else that is Comparable).

This is also required for sorting of service properties (bug #260060).
Comment 2 Jacek Pospychala CLA 2009-01-06 11:33:13 EST
oh I was going to update your patch for my changes, but you were faster :-)
good work!
Comment 3 Chris Aniszczyk CLA 2009-01-06 11:58:57 EST
done.

> 20090106

Thanks Wolfgang!