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 200589 - @Override annotation should have a quick hint to create the method to the interface
Summary: @Override annotation should have a quick hint to create the method to the int...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: UI, USABILITY
Depends on:
Blocks:
 
Reported: 2011-08-02 09:16 UTC by ZeroOne01
Modified: 2013-09-02 14:24 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Here I'd like to see an option to create this method into the interface that this class implements (9.89 KB, image/png)
2011-08-02 09:16 UTC, ZeroOne01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ZeroOne01 2011-08-02 09:16:53 UTC
Created attachment 109742 [details]
Here I'd like to see an option to create this method into the interface that this class implements

I often start writing new methods directly into the class that implements them instead of the interface that describes the class. Now, if I write a method signature into the interface, the class has a quick hint "Implement all abstract methods" or something along those lines. I find this should work the other way around as well: if you write the @Override annotation for a method that is not present in the interface, the quick hint should offer to create that method there. If there are multiple interfaces or super classes the quick hint should of course offer a list from where you could select the correct class or interface.