Community
Participate
Working Groups
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).
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.
The package explorer has this same problem.
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.
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.
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.