Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351896

Summary: References in workspace excludes closed projects
Product: [Eclipse Project] Platform Reporter: spamy2004
Component: SearchAssignee: Platform-Search-Inbox <platform-search-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Sample projects to reproduce error none

Description spamy2004 CLA 2011-07-12 16:28:59 EDT
Build Identifier: 20110218-0911

According to help.eclipse.org "all projects and files in the workspace are included" in the java search with scope workspace.

However, if I close a project referencing a method from another project in the same workspace, then this reference will not show up in the search results.

In my opinion this is a bug as it is in direct contradiction to the documentation which states that "all projects and files in the workspace are included".

Reproducible: Always

Steps to Reproduce:
1. Create a project A with a class AClass and a method AMethod
2. Create a project B with a class BClass and a method BMethod
3. Let BMethod make a call to AMethod (You need to add project A to the required projects for project B) 
4. If both projects are open and you search for references in workspace (ctrl + shift + g) for AMethod, the result shows the reference in BMethod
5. If you close project B now and repeat the same search (step 4) the reference will not show up
Comment 1 spamy2004 CLA 2011-07-12 16:39:26 EDT
Created attachment 199533 [details]
Sample projects to reproduce error
Comment 2 Dani Megert CLA 2011-07-13 02:15:27 EDT
The point of closed projects is to remove them from any operations to save time.