Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 143731 - [EditorMgmt] Link with Editor not working when the editor is a Browser
Summary: [EditorMgmt] Link with Editor not working when the editor is a Browser
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-25 11:03 EDT by Eric Moffatt CLA
Modified: 2019-11-14 03:27 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Moffatt CLA 2006-05-25 11:03:36 EDT
While updating the documentation I noticed that even when I click the 'Link with Editor' button that the resource does not become selected in either of the Navigator or Package Explorer.

My guess is that the link handling is using the 'title' of the doc rather than the resource path to synch with (for 'htm' files the editor title is not the resource path but rather the value of the HTML <title> tag).
Comment 1 Francis Upton IV CLA 2008-08-26 01:57:31 EDT
This applies to the htm files when they are opened with the browser and not the editor.  When they are opened with a text editor it works fine.  This is still a problem in 3.4.1.
Comment 2 Francis Upton IV CLA 2008-08-26 01:58:46 EDT
The package explorer has this same problem.
Comment 3 Francis Upton IV CLA 2010-03-08 18:45:18 EST
This is what's done to find the editor, which seems like it's right:

		if (aSelection.getFirstElement() instanceof IFile) {
			IEditorInput fileInput = new FileEditorInput((IFile) aSelection.getFirstElement());
			IEditorPart editor = null;
			if ((editor = aPage.findEditor(fileInput)) != null)
				aPage.bringToTop(editor);
		}

Moving to Editor Management.
Comment 4 Stephan Herrmann CLA 2012-01-20 07:21:43 EST
I frequently run into an issue for which fixing this bug could be a viable solution:

- Open Resource (Ctrl-Shift R)
- Find and select an .html file
- Hit Enter & see that this resource happens to be handled by the internal browser
- Look for ways to "open this file in a text editor"

It seems like I landed completely outside of Eclipse land because none of the selection specific actions seem to work on this resource.

If at least a double-click on "link with editor" would point me to the location in the package explorer I could find the file and indirectly get it opened in a text editor.

Is this bug likely to be fixed in the near future or(and?) should I file a new one for the more general request?

FWIW, I'm on Linux (Kubuntu).

PS: Just now I remember there is a hidden gem in the Open Resource dialog. But (a) it is really pretty well hidden (e.g., nothing saying "Open With") and (b) if I quickly hit enter hoping to get the text editor, it's awkward having to  start the same procedure again in order to open the resource in a specific editor.
Comment 5 Lars Vogel CLA 2019-11-14 03:27:48 EST
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.