| Summary: | explorer selection jumps around when using multi-page editor with 'link with editor' enabled | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | David Williams <david_williams> |
| Component: | UI | Assignee: | Dani Megert <daniel_megert> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, markus.kell.r, remy.suen |
| Version: | 3.8 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
David Williams
- The summary says "Package explorer" - comment 0 says: "This only happened in project explorer, not resource view. " This is contradictory and there is no "resource" view (at least not in the SDK). Maybe you meant 'Navigator' view? Having said that, I can easily reproduce this in all three views: 1. enable 'Link with Editor' in the view 2. double click on plugin.xml of a bundle 3. double click on 'MANIFEST.MF' of the same bundle ==> view selection jumps to 'plugin.xml' I suspect a bug in the PDE editor or even MultiPageEditorPart. In addition, I think those editors store the LRU page and open on that one. Need to take a closer look and test whether this is a regression. (In reply to comment #1) > - The summary says "Package explorer" > - comment 0 says: "This only happened in project explorer, not resource view. " > > This is contradictory and there is no "resource" view (at least not in the > SDK). Maybe you meant 'Navigator' view? > Yes, sorry, I meant Package Explorer in Java Perspective, and Project Explorer in Resource Perspective. > > Having said that, I can easily reproduce this in all three views: > 1. enable 'Link with Editor' in the view > 2. double click on plugin.xml of a bundle > 3. double click on 'MANIFEST.MF' of the same bundle > ==> view selection jumps to 'plugin.xml' > > Confirmed these steps. > I suspect a bug in the PDE editor or even MultiPageEditorPart. In addition, I > think those editors store the LRU page and open on that one. > > Need to take a closer look and test whether this is a regression. I have now checked 3.8 build (I20120123-1800) and occurs there, so not related to "compatibility layer". And now just check 3.7.1 release and it also occurs there, so is not a regression. Guess I normally have "link with Editor" turned off so haven't noticed before. Thanks for checking David. The initially opened file is treated as the editor's input and that file name is also reflected in the editor tab. From that perspective the jumpy switching makes sense. If we'd want to change that behavior we'd also have to auto-update the editor tab when we switch the pages. Also, a single page might use more than one file as its input. This change could either go into PDE or the framework, but I think it's best if we leave this bug alone. |