Bug 129983 - [1.5][assist] Need partial word for annotation autocompletion
Summary: [1.5][assist] Need partial word for annotation autocompletion
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.3 M2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 107822 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-01 12:06 EST by Yen Lu CLA
Modified: 2006-09-18 10:29 EDT (History)
5 users (show)

See Also:


Attachments
Proposed fix (24.48 KB, patch)
2006-09-06 10:43 EDT, David Audel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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