| Summary: | [CommonNavigator] Navigator Framework Sorters Need Override Capability | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Brian Fitzpatrick <bfitzpat> | ||||
| Component: | UI | Assignee: | Francis Upton IV <francisu> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | aleherb+eclipse, dak2009, rcernich | ||||
| Version: | 3.2.1 | ||||||
| Target Milestone: | 3.6 M6 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 150592 | ||||||
| Attachments: |
|
||||||
|
Description
Brian Fitzpatrick
We are looking for solutions at this point. If the framework can't provide something, we will need to implement our own extension framework for sorting within the Data Source Explorer. For additional discussion, see BZ entry 150592 for Data Tools. Thanks for your consideration. --Fitz cc'ing Rob Cernich (DTP) Updating summary to add [Common Navigator] Is this still an issue? Yes, I believe this is still an issue. This is mostly done in 35M6, however there are a couple of issues with it, so I'm going to leave this open until they are resolved. Essentially, the sorter overrides will go with normal navigator content extension override mechanism which was changed a bit in M6. Thanks Francis for keeping me updated. Will there be an example implementation of how to use the sorter override that we can leverage? (In reply to comment #6) > This is mostly done in 35M6, however there are a couple of issues with it, so > I'm going to leave this open until they are resolved. > Essentially, the sorter overrides will go with normal navigator content > extension override mechanism which was changed a bit in M6. One issue with this is that the sorter for CDT elements is now overridden by the JDT sorter (because of higher priority). The correct fix, I thought, was to add appropriate parentExpressions to JDT's and CDT's commonSorter element, but that does not seem to work. Created attachment 129979 [details]
Patch for JDT UI
This patch does some slight changes to the JDT triggerPoints and actionProivder enablement expressions and adds a parentExpression to the commonsorter element.
It seems that JDT's content extension was enabled for any resource which made it override the CDT sorter. I am not sure why this did not cause problems before, but limiting the expression to resources with java nature seems to do the trick. I am attaching it here for now because I am not sure whether the bug is with JDT or CNF.
(In reply to comment #9) > I am not sure why this did not cause problems > before Some basic sorter override capability was added to 3.5M6 so that's probably the change that you are hitting. I will work with the JDT UI people on this. As always, thanks for your contribution Tony. (In reply to comment #10) > Some basic sorter override capability was added to 3.5M6 so that's probably the > change that you are hitting. I will work with the JDT UI people on this. As > always, thanks for your contribution Tony. Any progress on this issue? M7 is approaching... (In reply to comment #11) > (In reply to comment #10) > > Some basic sorter override capability was added to 3.5M6 so that's probably the > > change that you are hitting. I will work with the JDT UI people on this. As > > always, thanks for your contribution Tony. > > Any progress on this issue? M7 is approaching... > I am going to look at it tomorrow. I was off in my calculations about M7 week, but I'm spending from tomorrow 'till Sunday on this stuff. With the work I have done towards making sorters overridable in M6, it seems that it revealed the incorrect CNF configuration of the JDT UI which this patch fixes. One other part of the patch you changed (adding the PackageFragmentRootContainer) is the subject of bug 215729 which is currently assigned to JDT UI. I have opened a new bug on JDT UI for this correction bug 273660 and I have attached your patch to that bug report. *** This bug has been marked as a duplicate of bug 141724 *** |