Bug 72097

Summary: [code assist] api for generic completion proposals
Product: [Eclipse Project] JDT Reporter: Tom Hofmann <eclipse>
Component: CoreAssignee: David Audel <david_audel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, markus.kell.r
Version: 3.0   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 71562    

Description Tom Hofmann CLA 2004-08-17 11:06:00 EDT
3.0 M1

There is currently no API to get information about generic types (methods...)
when collecting completion proposal information. Neither ICompletionRequestor
nor the new CompletionRequestor contains a way to get that information.

My use case: I want to propose a for-loop template over a collection, such as:

List<? extends String> myList;

[the for-template inserts:]

for (String string: myList) {
    [caret]
}

When collecting completion information, ICompletionRequestor reports a local
variable of type 'java.util.List' which is fine, but I would expect a way to get
the parameter type information.
Comment 1 Tom Hofmann CLA 2005-01-10 11:27:37 EST
I guess this could go as 'fixed' since CompletionProposal.getSignature contains
generics information about local variables.
Comment 2 David Audel CLA 2005-03-14 09:30:02 EST
Fixed in previous milestone build.
Comment 3 David Audel CLA 2005-03-14 09:30:53 EST
Closed