Summary: | Code assist on Intreface-'Constructors' incomplete | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Martin Aeschlimann <martinae> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | m.moebius |
Version: | 2.0 | ||
Target Milestone: | 2.0 M2 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Martin Aeschlimann
2001-11-27 06:06:37 EST
I think we should add another API for feeding these anonymous type bodies. Constructors for interface do not sound right, 1.0 customers would be seeing this behavior too, whereas with the new ICompletionRequestor, a new API would be ignored to 1.0 customers. Do you agree with the API change ? yes. can you give details? would it be acceptAnonymousType(...)? could it also be called in type names after 'new'? (not only after the opening bracket) new IActio ^code assist here i suggest : public void acceptAnonymousType( char[] declaringTypePackageName, char[] declaringTypeName, char[][] parameterPackageNames, char[][] parameterTypeNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd) In the API, declaringTypeName will rather be superTypeName. New API on ICompletionRequestor for suggest anonymous type declaration: void acceptAnonymousType( char[] superTypePackageName, char[] superTypeName, char[][] parameterPackageNames, char[][] parameterNames, char[][] parameterNames, char[] completionName, int modifiers, int completionStart, int completionEnd); Fixed. |