Bug 92210

Summary: [search] Search for method declaration in working set (source folder) searches in whole project
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-04-21 09:23:35 EDT
I20050420-1200

- have jdt.core from CVS
- create a java working set consisting of the source folder 'dom' (not only the
individual packages)
- with the java search dialog, search for method declarations in working set
'dom' with name 'resolve*'
-> matches are reported in the whole project, not only in the selected source folder
Comment 1 Martin Aeschlimann CLA 2005-04-26 04:13:55 EDT
verified that the search scope that is created only contains the package
fragment root that is in the working set

moving to jdt.core
Comment 2 Frederic Fusier CLA 2005-05-07 13:04:18 EDT
Fixed and released in HEAD.

Relative path to source folder was missed while adding it to JavaSearchScope.

[jdt-core-internal]
Changes done in JavaSearchScope.add(IJavaElement).

Test case added in JavaSearchTests
Comment 3 Maxime Daniel CLA 2005-05-12 10:17:22 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.