Bug 129983

Summary: [1.5][assist] Need partial word for annotation autocompletion
Product: [Eclipse Project] JDT Reporter: Yen Lu <yenlu>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: cbridgha, deboer, jan.materne, jpitman, steven.wasleski
Version: 3.2   
Target Milestone: 3.3 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Yen Lu CLA 2006-03-01 12:06:23 EST
I grabbed Eclipse 3.2 M5a and proceeded to create a Java project with the JSR-181 reference implementation linked in. I then tried to create a Web service using an annotated Java bean. I expected that after typing "@" and pressing CTRL+SPACE, I would get some auto-completion choices but none appeared. Also, if I continuously press CTRL+SPACE to try the other default proposals, nothing appeared. auto-completion choices did not appear until I typed in a partial word. For annotations which have parameters, auto-completion just gave me the name of the annotation. e.g. if I type "@WebMethod(" and then press CTRL+SPACE, "WebMethod" is automatically added after the bracket. Shouldn't it give me choices like "operationName" and "action"?
Comment 1 Olivier Thomann CLA 2006-08-16 12:10:32 EDT
This looks more like a feature request and therefore cannot be included in a maintenance release.
David,
Isn't this the same issue than type completion with no word?
Comment 2 Philipe Mulet CLA 2006-08-28 06:56:19 EDT
Definitely a feature request changing our existing behavior.
We are planning changes in this area for 3.3 anyway.

Nothing we would change for 3.2.1.
Comment 3 David Audel CLA 2006-09-05 04:40:08 EDT
Now annotation arguments names are proposed even if there is no prefix (see bug 148521).
Comment 4 David Audel CLA 2006-09-06 10:43:40 EDT
Created attachment 49489 [details]
Proposed fix

Add proposals for empty annotation name
Comment 5 David Audel CLA 2006-09-06 10:48:10 EDT
Released for 3.3 M2.

Test added
  CompletionTests_1_5#test0290()

Annotation names are proposed just after the '@'.
Comment 6 David Audel CLA 2006-09-06 10:49:32 EDT
*** Bug 107822 has been marked as a duplicate of this bug. ***
Comment 7 Frederic Fusier CLA 2006-09-18 10:29:52 EDT
Verified for 3.3 M2 using build I20060918-0010