Community
Participate
Working Groups
Allow sorting of attribute editors in TaskEditorAttributePart to be configurable. Currently only sorting by layout hint is possible since initialize() is private and the attribute editors list is private. The order of attribute editors should be configurable by task connectors so they can support user-defined ordering and location of attribute editors. Suggestion is either to make the list of attribute editors protected or to expose a hook during initialize for subclasses to do their desired sorting.
Created attachment 173113 [details] Patch that creates a protected method to generate the attribute editor sorter
The patch provided introduces a protected method that creates an attribute editor comparator used to sort the abstract attribute editors. This new method is called by initialize and by default returns the current comparator implementation which sorts by layout hint priority. Sub-classes can now override this method and provide their own sorter to control attribute editor placement.
Thanks Kevin! I have applied the patch to head.