Bug 157832 - Can TypeInfoRequestor and TypeInfo be made public API
Summary: Can TypeInfoRequestor and TypeInfo be made public API
Status: RESOLVED DUPLICATE of bug 148380
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-19 10:42 EDT by Ryan Manwiller CLA
Modified: 2006-10-04 08:56 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Manwiller CLA 2006-09-19 10:42:40 EDT
We would like to get from a fully qualified type name string to an IType, using SearchEngine as follows:

    List typesFound = new ArrayList();
    IJavaSearchScope scope = SearchEngine.createWorkspaceScope();
    TypeInfoRequestor requestor = new TypeInfoRequestor(typesFound);
    new SearchEngine().searchAllTypeNames(null, typeName.toCharArray(), scope, requestor, IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, monitor);

    for (Iterator iterator = typesFound.iterator(); iterator.hasNext();) {
        TypeInfo typeInfo = (TypeInfo) iterator.next();
        IType type = typeInfo.resolveType(scope);
        ...
    }
        
The problem is that org.eclipse.jdt.internal.corext.util.TypeInfoRequestor and org.eclipse.jdt.internal.corext.util.TypeInfo are internal. Can these be made public?
Comment 1 Olivier Thomann CLA 2006-09-19 10:51:27 EDT
Moving to JDT/UI
Comment 2 Philipe Mulet CLA 2006-09-19 10:58:25 EDT
Similar request to planned API effort described in bug 148380.
Note that the latter is planned for 3.3M3
Comment 3 Martin Aeschlimann CLA 2006-10-04 08:56:43 EDT
solution for bug 148380 will fix this

*** This bug has been marked as a duplicate of 148380 ***