Bug 72097 - [code assist] api for generic completion proposals
Summary: [code assist] api for generic completion proposals
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 71562
  Show dependency tree
 
Reported: 2004-08-17 11:06 EDT by Tom Hofmann CLA
Modified: 2005-03-14 09:30 EST (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 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