Skip to content

Eclipse text search mostNestedProject should not include closed projects when detecting which files to open #1322

@MKamelEJ

Description

@MKamelEJ

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
image

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

This should check the file exists in an open projects only

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions