Community
Participate
Working Groups
The "link with Editor" button in the navigator and package explorer does not work when the current editor is the internal browser.
Works fine for me. Any specific steps to reproduce?
(In reply to comment #1) > Works fine for me. Any specific steps to reproduce? Feel free to reopen when you have the steps to reproduce.
Sorry, I missed comment #1 when it came. Here are my steps on I20100603-1500: 0) Set the package explorer to "link with editor", collapse all trees 1) Use Ctr+shift+r (open resource) to open a html file (most bundles have an about.html) --> Package explorer does not select the html file 2) (Ctrl+shift+T) open some java file -> Package explorer changes to java file 3) Switch editor back to the html file -> Package explorer does not change
I still can't reproduce this. Since its PE, I'm assigning to JDT
(In reply to comment #4) > I still can't reproduce this. Since its PE, I'm assigning to JDT Something is wrong, I could reproduce this the first couple of times but then it started working correctly :) and I have no clue why.
I don't know what you tried but I can reproduce this very easily in 3.6 RC4 (but looking at the code this never worked): 1. start new workspace 2. create a simple project 'A' 3. create files: a.txt, b.txt, c.html, d.html 4. enable 'Link with Editor' ==> the file is not revealed in the Package Explorer whenever an internal browser is activated by clicking on the tab. As already outlined in comment 0, this also happens in the Navigator, hence definitely not a JDT issue. The problem is that the WebBrowserEditorInput directly inherits from IEditorInput but doesn't offer any useful adapters to get the resource out of it (or implement IURIEditorInput).
*** This bug has been marked as a duplicate of bug 99307 ***