Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Link Text editor and Project Explorer doesn't work in some cases(Link Text editor and Project Explorer doesn't work in some cases - when open from Search result view)
Link Text editor and Project Explorer doesn't work in some cases [message #1852910] Fri, 10 June 2022 12:20
Pavol Sestak is currently offline Pavol SestakFriend
Messages: 5
Registered: September 2013
Junior Member
Here is simple scenario how to reproduce it:
Let's have some java project and in it somewhere in directories have some jasper template file (*.jrxml). When invoke search: menu Search->File...
put on File Search tab some text to search that I know is definitely in some jrxml files in my project and file name pattern set to *.jrxml.
Then in search result in Search view on right click in context menu choose "Open with -> Text editor" , not system editor - just simple text editor in Eclipse.
And that's it - link between text editor and Project Explorer view doesn't work.
Of course toggle button "Link with Editor" is on.
BUT! when the very same file is open through right click on context menu in Project Explorer view then the Editor<->Project Explorer link works.
The point is opening the file from the results in Search view. Then the link Editor<->Project Explorer doesn't work.

The same problem discovered when opening file via dialog Open Resource:
Ctrl-Shift-R, then type the resource name we are looking for, e.g. *.jrxml.
Then in this Open Resource dialog clicked on bottom button
Open With -> Text Editor.
File is open in text editor, but the link Editor<->Project Explorer doesn't work.
Seems line the link works only when the originator of open file command is
Project Explorer or Package Explorer. When the originator is Search view or Open Resource dialog, link doesn't work.

Tested on
Version: 2021-12 (4.22.0)
Build id: 20211202-1639.

[Updated on: Fri, 10 June 2022 12:33]

Report message to a moderator

Previous Topic:Browsing search results is not synced (Linked) to Project Explorer
Next Topic:Launching Eclipse 2020-09R error Version 11 or greater is required.
Goto Forum:

Current Time: Fri Feb 03 22:32:33 GMT 2023

Powered by FUDForum. Page generated in 0.24887 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top