This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 232093 - Completion while overriding method
Summary: Completion while overriding method
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-01 15:08 UTC by lforet
Modified: 2013-07-18 17:00 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
IDE log (180.04 KB, text/plain)
2013-07-01 15:09 UTC, lforet
Details
Works for me in 7.4 (5.40 KB, image/png)
2013-07-16 21:48 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lforet 2013-07-01 15:08:58 UTC
In Netbeans the only way for instance to override a method is to use the "generate override methods" wizard. It will be nice to have the completion directly from the editor.

Example, If I type : 
@Override toStr 
and use the Ctl+ space in order to have autocompletion, I would expect that the IDE  suggest the toString() method.

@Override public void toSt  
and use the Ctl + space should work to.

best regards.
Comment 1 lforet 2013-07-01 15:09:04 UTC
Created attachment 136545 [details]
IDE log
Comment 2 lforet 2013-07-01 15:13:44 UTC
Comment on attachment 136545 [details]
IDE log

The log from my IDE is not relevant here and should not appear. I was pretty sure I had unchecked the box asking me to attach the IDE log.
Comment 3 markiewb 2013-07-16 21:48:13 UTC
Created attachment 137262 [details]
Works for me in 7.4
Comment 4 markiewb 2013-07-16 21:49:30 UTC
Works for me. Type "toS" and code complete. NB will provide an CC item which will generate toString(). See screenshot https://netbeans.org/bugzilla/attachment.cgi?id=137262
Comment 5 lforet 2013-07-18 17:00:42 UTC
Indeed with typing  "toSt" it works. But if I type :

public String toSt

it does not work. 

At first sight, it can appear stupid to type so much if you can avoid it, but sometimes you began to type this and you say to yourself : «Am I overriding a method of my superclass ?» and then you hit ctl+space.

IMHO, I will find it usefull and natural.  

regards.