Summary: | DCR: Code Assist: Hook to add getter and setters | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Martin Aeschlimann <martinae> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.0 | ||
Target Milestone: | 3.0 M9 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Martin Aeschlimann
2004-04-23 03:27:33 EDT
Nice to have, but post 3.0 and with the new codeassist API. How would a random client know that this method is an artifact ? The trick is that it's useful as is. As said, it offers to create a method stub with the name that's currently there. class A { eq| } suggests 'equals': existing proposals to override the equals methods -> public boolean equals(Object o) { ... } 'eq': new (test method with the name 'eq' -> private void eq() {} You would use this proposal for quickly create a test method, ect. Could be useful indeed. Will investigate. Fixed. Added a new interface public interface IExtendedCompletionRequestor extends ICompletionRequestor { void acceptPotentialMethodDeclaration( char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, int completionStart, int completionEnd, int relevance); } Implements this class and use them as a completion requestor. This is a temporary fix. Once the new completion API will be ready, this class will be removed. Verified in 200405180816 |