Bug 9041 - search: cannot create a sub-cu scope
Summary: search: cannot create a sub-cu scope
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 6224
  Show dependency tree
 
Reported: 2002-02-04 11:43 EST by Adam Kiezun CLA
Modified: 2002-02-07 13:38 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2002-02-04 11:43:28 EST
you cannot create a search scope that is smaller that a cu
(the api doc suggests otherwise)

the whole enclosing cu is always included
Comment 1 Philipe Mulet CLA 2002-02-04 13:20:06 EST
Not critical.
Comment 2 Jerome Lanneluc CLA 2002-02-06 08:29:27 EST
Sub-cu java elements are now remembered in the search scope. Method encloses
(IJavaElement) now ensure that one of the sub-cu java elements is equal to or 
is a parent of the given element