Bug 92210 - [search] Search for method declaration in working set (source folder) searches in whole project
Summary: [search] Search for method declaration in working set (source folder) searche...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-21 09:23 EDT by Markus Keller CLA
Modified: 2005-05-12 10:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.