Summary
When having nested projects some are open and some are closed when searching for textual content:
- the textual search shows the results of the open projects only
- but when you double click on the search results it will send you to the mostNestedProject which may be closed
- Resulting in opening an empty editor
Steps to reproduce
- Import a project from existing workspace (A)
- Create another project (B)
- Drag folder from A project into B
- Select Link to files and folders
- Search for a keyword in that folder then click to open it
What is the current bug behavior?
The result is resource "A/file.txt" doesn't exist
What is the expected correct behavior?
It should open the file in the open projects only.
Relevant logs and/or screenshots

org.eclipse.search.internal.ui.text.FileSearchPage.mostNestedEquivalent(IFile)

This should check the file exists in an open projects only