Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 252155 - Outline sorter preferences are not initialized
Summary: Outline sorter preferences are not initialized
Status: RESOLVED FIXED
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dltk.common-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 238084
  Show dependency tree
 
Reported: 2008-10-27 05:56 EDT by Eden Klein CLA
Modified: 2010-06-11 06:58 EDT (History)
1 user (show)

See Also:


Attachments
outline sorter patch (809 bytes, patch)
2008-10-27 06:24 EDT, Eden Klein CLA
alex.panchenko: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eden Klein CLA 2008-10-27 05:56:38 EDT
The implementation of the ModelElementSorter implies that the "APPEARANCE_MEMBER_SORT_ORDER" preference is initialized to some default values.
The sorter tries to sort the elements by their category and then by their name. Since there is no initialization, all of the categories get the same "weight" of importance (zero), so there is no actual sorting by category, only the alphabetical sorting takes place.
the patch suggested adds the initialization of APPEARANCE_MEMBER_SORT_ORDER together with all the other preferences initializations
Comment 1 Eden Klein CLA 2008-10-27 06:24:21 EDT
Created attachment 116169 [details]
outline sorter patch 

adding the patch
Comment 2 Alon Peled CLA 2008-10-27 06:48:14 EDT
Applied patch contributed by Eden Klein