Bug 483313 - Completion for method declaration when @Override is set
Summary: Completion for method declaration when @Override is set
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-30 10:01 EST by Mickael Istria CLA
Modified: 2015-12-01 09:12 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2015-11-30 10:01:11 EST
Assuming for example a piece of code "@Override public void comp", it would be nice to have the completion proposing to complete with the signature of method compareTo.
Comment 1 Stephan Herrmann CLA 2015-11-30 18:26:23 EST
Why bother to type all that if you can have the proposal just by saying

   comp<ctrl-space>

?
Comment 2 Mickael Istria CLA 2015-12-01 00:59:36 EST
(In reply to Stephan Herrmann from comment #1)
> Why bother to type all that if you can have the proposal just by saying
> 
>    comp<ctrl-space>
> 
> ?

Mainly because as a regular user, I do not really know when and how the completion works , I discover where it works "on the stream" while I'm writing some code where I expect completion to work. In most cases, I know that I do want the @Override and know the return type, and want the completion after I typed that, mainly to get the parameters. So despite this completion is actually useful, it seems also necessary to cover the case when the declaration is partially written.