Bug 107822 - Code Completion for Annotations needs at least one character
Summary: Code Completion for Annotations needs at least one character
Status: RESOLVED DUPLICATE of bug 129983
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-24 05:16 EDT by Jan Matèrne CLA
Modified: 2006-09-06 10:49 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Matèrne CLA 2005-08-24 05:16:42 EDT
I have an Annotation

@Retention(RUNTIME)
@Target({FIELD,METHOD})
public @interface Option {
    String name();
    String usage() default "";
    String metaVar() default "";
}

If I want to use this annotation, I have to type "@o" to get code completion.
Same for its arguments (n-name u-usage m-metachar). When using code completion
in the normal Java space I´ll get suggestions directly with Ctrl-Space.

So would expect to get a list of available annotations directly (or after "@")
and all available arguments inside the annotation.

First I thought here is no completion, but Bug 87987 sais it´s buildin. But not
correctly (IMHO) - you have to type the first character.
Comment 1 Jan Matèrne CLA 2005-08-24 05:18:22 EDT
Sorry, I used Eclipse 3.1

Version: 3.1.0
Build id: I20050627-1435
Comment 2 Jess Garms CLA 2005-08-25 16:20:12 EDT
This is a change that would need to be made to JDT core.

Agree that typing "@o" is more than should be required. Would prefer "@" though,
as the suggestions list would be very cluttered if we offered annotations in all
places they could be used. 
Comment 3 David Audel CLA 2006-03-29 05:14:35 EST
Defer post 3.2
Comment 4 David Audel CLA 2006-09-06 10:49:09 EDT
Reopened
Comment 5 David Audel CLA 2006-09-06 10:49:32 EDT

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