| Summary: | [CommonNavigator] ILinkHelper: Provide optional interface to know about the context where the show in is being done | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Fabio Zadrozny <fabiofz> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | francisu, heiko.boettger, markus.kell.r |
| Version: | 4.1 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Windows 7 | ||
| Whiteboard: | stalebug | ||
|
Description
Fabio Zadrozny
Please do provide a patch, that will make it easier. Isn't this information already available in the ShowInContext's getSelection()? That should be an ITreeSelection from which you can get TreePaths that know the whole parent chain. It's available in the ShowInContext, but it's not passed along to the ILinkHelper. Also, only the selection isn't enough to do what I want (I also need access to the content provider to make queries on the tree -- as I'm searching for an item that for all effects only exists as a view of the file system in the tree). See: https://github.com/aptana/Pydev/blob/release/plugins/org.python.pydev/src_navigator/org/python/pydev/navigator/actions/PythonLinkHelper.java for a reference on what's being done. I still haven't gotten time to do a patch (and will enter vacations for 2 weeks now), but I expect to provide a patch right after that... I have nearly the same problem in my LinkHelper implementation. I need to know the contentprovider in #findSelection. The second problem is, that the editorinput is not enought, we want to select the subnodes based on the editors selection. As a workaround I use an ActionProvider to install a SelectionListener on the active editor and set the selection directly on the commonnavigator. To be consistent with the ICommonContentProvider & CommonActionProvider an init-method passing a CommonExtensionSite would be nice. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag. |