Change sorting behavior of Quick Outline [message #892295] |
Wed, 27 June 2012 12:20  |
Eclipse User |
|
|
|
Hi there!
I just updated to Xtext 2.3 and discovered the following(don't know if it was like that before):
The outline of my DSL has a different sorting order in outline and quick outline.
I'm using a custom TreeProvider (by extending DefaultOutlineTreeProvider), generating a list of all functions within a document in the order of appearence.
In the outline, the functions are represented correctly, in the quick outline they are ordered alphabetically.
(see attached screenshot)
So after some debugging I found out that there are the classes OutlineFilterAndSorter and QuickOutlineFilterAndSorter where the second one by default always returns true in isSortingEnabled().
Is there a reason for that?
I didn't find a corresponding bind... method in the UIModule to overwrite QuickOutlineFilterAndSorter, so is there way to change this behaviour without overwriting a lot of other classes?
Thanks for your help!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03160 seconds