Bug 101516

Summary: Sort extensions in PDE plug-in XML editor
Product: [Eclipse Project] PDE Reporter: Darin Wright <darin.eclipse>
Component: UIAssignee: Benjamin Muskalla <b.muskalla>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: b.muskalla, gheorghe, pombredanne
Version: 3.0Keywords: contributed
Target Milestone: 3.3 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch to sort the Extensions Tree
none
sort_extensions_button.diff none

Description Darin Wright CLA 2005-06-23 14:19:14 EDT
3.1

It would be helpful to be able to sort the extensions listed in the extensions 
tab of the plug-in XML editor alphabetically, or by declared order.
Comment 1 Wassim Melhem CLA 2005-06-23 14:21:30 EDT
good suggestion.

In the meantime, you can sort them in the outline view.  Maybe that could help.
Comment 2 Darin Wright CLA 2005-06-23 14:25:59 EDT
Ah - I didn't have the outline view open. My laptop doesn't have enough screen 
space.
Comment 3 Wassim Melhem CLA 2005-06-23 14:27:45 EDT
oh no.  still using the laptop I saw a year and a half ago?  if so, that's the 
real tragedy :-)
Comment 4 Benjamin Muskalla CLA 2006-07-17 20:27:24 EDT
Created attachment 46413 [details]
Patch to sort the Extensions Tree

This should add the needed functionality.
Comment 5 Wassim Melhem CLA 2006-07-20 23:14:23 EDT
The patch attached in comment 4 is not sufficient.  We do not want to sort the extensions all the time.  Order is important.  You would want a way to toggle sorting on/off.
Comment 6 Benjamin Muskalla CLA 2006-07-21 00:30:05 EDT
I thought of a additional button under the "down" button. I just implemented something like this, works great. But i think a nice way to toggle sorting would be a toggle button. But for this, we need to patch the SharedPartWithButtons class. Any suggestions?
Comment 7 Wassim Melhem CLA 2006-07-21 00:59:49 EDT
It would be nice/simple to control the sorting action via an icon that gets added to the row buttons already on the top right of the Extensions page.  

The icon would be the a->z icon used to sort in the Outline view of the plug-in editor and java editor.
Comment 8 Benjamin Muskalla CLA 2006-07-21 12:21:20 EDT
Created attachment 46645 [details]
sort_extensions_button.diff

Wassim, did you mean something like this?
Comment 9 Wassim Melhem CLA 2006-07-21 22:12:51 EDT
Patch plays well.  Thanks Benjamin.