Bug 196027 - [Schema][Editors] Sort element reference list in context menu
Summary: [Schema][Editors] Sort element reference list in context menu
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.4 M1   Edit
Assignee: Adam Archer CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-07-10 13:22 EDT by Mike Pawlowski CLA
Modified: 2007-07-12 10:43 EDT (History)
1 user (show)

See Also:
mike.pawlowski: review+


Attachments
patch (3.70 KB, patch)
2007-07-12 09:39 EDT, Adam Archer CLA
mike.pawlowski: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Pawlowski CLA 2007-07-10 13:22:41 EDT
(1) Create a new extension point schema (not shared)
(2) Add 3 new elements ("a", "b", "c") in the following order: c, b, a
(3) Add a "Sequence" or "Choice" compositor to the "extension" element
(4) Select the new compositor and select "New > Reference"
    -> Element reference order is:  c, b, a (order they are defined)

It would be nice if the element reference list was sorted.
Comment 1 Adam Archer CLA 2007-07-12 09:39:26 EDT
Created attachment 73654 [details]
patch

Sorts the items when building the context menu to avoid sorting them in the UI against the user's will.
Comment 2 Mike Pawlowski CLA 2007-07-12 10:42:23 EDT
Comment on attachment 73654 [details]
patch

Tested well, Adam.  Thanks.
Comment 3 Mike Pawlowski CLA 2007-07-12 10:43:00 EDT
Patch applied to HEAD.

Target:  3.4 M1