Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315498 - Link with Editor does not work for internal browser
Summary: Link with Editor does not work for internal browser
Status: CLOSED DUPLICATE of bug 99307
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-ua-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 16:56 EDT by Andrew Niefer CLA
Modified: 2010-06-11 04:07 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2010-06-02 16:56:32 EDT
The "link with Editor" button in the navigator and package explorer does not work when the current editor is the internal browser.
Comment 1 Prakash Rangaraj CLA 2010-06-03 00:12:19 EDT
Works fine for me. Any specific steps to reproduce?
Comment 2 Prakash Rangaraj CLA 2010-06-10 08:58:40 EDT
(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.
Comment 3 Andrew Niefer CLA 2010-06-10 10:36:01 EDT
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
Comment 4 Prakash Rangaraj CLA 2010-06-10 12:48:05 EDT
I still can't reproduce this. Since its PE, I'm assigning to JDT
Comment 5 Deepak Azad CLA 2010-06-10 15:07:28 EDT
(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.
Comment 6 Dani Megert CLA 2010-06-11 04:05:48 EDT
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).
Comment 7 Dani Megert CLA 2010-06-11 04:07:29 EDT

*** This bug has been marked as a duplicate of bug 99307 ***