Bug 7302 - Need visibility in search results.
Summary: Need visibility in search results.
Status: RESOLVED WONTFIX
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 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-07 06:30 EST by Martin Aeschlimann CLA
Modified: 2002-01-11 08:56 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 Martin Aeschlimann CLA 2002-01-07 06:30:57 EST
Using the search engine to find all types (in a scope) has the advantage to 
avoid the creation of IType and ICompilation elements.
The search result tells about if a type is a class or interface. I have now two 
cases were I would need add a type visibility filter 
(public /protected /private)

1. Operanize Import should only import visible types
2. in the JavaDoc frontend I use the serach engine to find all types, but have 
to filter out private, private/package ect...
Comment 1 Philipe Mulet CLA 2002-01-09 05:32:25 EST
Which API are you talking about ?

IJavaSearchResultCollector is passed Java elements, thus containing modifiers.
Comment 2 Martin Aeschlimann CLA 2002-01-09 09:17:57 EST
it's the ITypeNameRequestor.
Comment 3 Philipe Mulet CLA 2002-01-10 05:33:55 EST
I see. Unfortunately, this is 1.0 API, and we cannot change them. We would have 
to deprecate, add new ones just for your convenience.

This isn't going to happen, sorry.
Comment 4 Martin Aeschlimann CLA 2002-01-10 06:07:44 EST
You can add new flags to the search engine, to specify which types are reported.
As it is currently possible to specify to see only classes or interfaces.

ok to reopen?