| Summary: | [Navigator] Closing editor should NOT change Navigator selection | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Peter Burka <peter_burka> |
| Component: | UI | Assignee: | Knut Radloff <knut_radloff> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | dean.t.roberts |
| Version: | 2.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Peter Burka
Perhaps a better solution to this problem would be to provide a way to find an editor's input in the navigator/packages view when the 'Link Navigation Selection to Active Editor' option is turned off. I think I'd probably prefer to run with this option off, but I'd still like some way to (manually) select the current editor's input in the tree. Views like the Navigator and Packages view already implement ISetSelectionTarget e.g. to select a new file when it is created. Could have a sync action which calls this on all implementing views in the window, passing the active editor's input. *** Bug 14617 has been marked as a duplicate of this bug. *** *** Bug 11211 has been marked as a duplicate of this bug. *** Editor to Navigator linking works as intended. When an editor becomes active the navigator selection should follow if the workbench preference is enabled. Bug 11211 mentions that the navigator selection should not change if it does not match the current editor input. If I follow the steps above, when I close the last editor the navigator still has focus and the new, reopened editor is not active. Thus the navigator selection does not change. The selection only changes when I click on an editor and then close it in which case the Navigator selection matched the editor input. As an alternative to the editor/view linking we should provide a "Show in" mechanism. Show in all viewers that implement ISetSelectionTarget is probably not good enough though. There have been bug reports about unwanted reveal in random viewers when new resources are created. We should consider a generic "Show in" mechanism like Erich suggests in bug 7822. I would like to mark this as WONTFIX. The navigator selection only links to the *active* editor which seems to be what Peter wants. For Dean there's hope that bug 7822 will get addressed in the future. |