Common Navigator Framework (CNF) Sorting Problem [message #1043879] |
Thu, 18 April 2013 04:12 |
Eclipse User |
|
|
|
In my RCP I have a Common Navigator based viewer.
The children of one parent are provided by multiple navigatorContents.
Parent (Content A)
|-child1 (B)
|-child3 (D)
|-child2 (C)
|-child4 (B)
I am aware that I can sort the contents of the different navigatorContents by priority. Leading to something like:
Parent (Content A)
|-child1 (B)
|-child4 (B)
|-child2 (C)
|-child3 (D)
What I would like to do is sort over multiple content providers to get:
Parent (Content A)
|-child1 (B)
|-child2 (C)
|-child3 (D)
|-child4 (B)
I had the impression that sortOnly navigatorContent was supposed to do exactly that. But my sortOnly content never becomes active.
Looking at the code of CommonViewerSorter it looks like at least one content that provides children needs to trigger on the two children to sort before the CommonViewerSorter is even looking for a sorter.
In my case the content provider of one type of children does not know the other children and the sortOnly content does not provide the children.
Is this a bug in CommonViewerSorter?
|
|
|
Powered by
FUDForum. Page generated in 0.02011 seconds