Bug 96863 - Annotation element content assist
Summary: Annotation element content assist
Status: RESOLVED DUPLICATE of bug 93120
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 16:00 EDT by Jerry Vos CLA
Modified: 2005-05-30 04:32 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 Jerry Vos CLA 2005-05-26 16:00:57 EDT
It would be nice if there was content assist for the fields in an annotation. 
For instance say I'm working with this annotation:

public @interface MyAnnotation {
	String val1();

	double val2() default 7.0;

	int val3() default 9;
}

if I bring up the content assist at the ^ (ctrl-space with the cursor at ^), it
would be nice if it would pop up a list of val2 and val3.
@MyAnnotation(val1="asdf", ^)

"Using it" on val2 would give me @MyAnnotation(val1="asdf", val2=[cursorHere]).

Bringing up content assist again on @MyAnnotation(val1="asdf", val2=99.99, ^)
should automatically stick in val3=[cursorHere] which would be

@MyAnnotation(val1="asdf", val2=99.99, val3=[cursorHere])
Comment 1 Dani Megert CLA 2005-05-30 04:32:48 EDT

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