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 234263 - Offer refactor "implement interface" in hints
Summary: Offer refactor "implement interface" in hints
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Svata Dedic
: 88461 (view as bug list)
Depends on:
Reported: 2013-08-12 12:01 UTC by ecerichter
Modified: 2015-10-02 13:11 UTC (History)
2 users (show)

See Also:
Exception Reporter:

Screenshot of the proposal. (8.14 KB, image/png)
2013-08-12 12:01 UTC, ecerichter

Note You need to log in before you can comment on or make changes to this bug.
Description ecerichter 2013-08-12 12:01:31 UTC
Created attachment 138581 [details]
Screenshot of the proposal.

Product Version = NetBeans IDE Dev (Build 201308090746)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01

When working with visual interfaces, sometimes we want to make "this" to implement some sort of interface.
For example,


But current class does not implements ClickHandler interface.
When the hint appear, it only offer "cast this to ClickHandler", and would be much better if it offers to "make this implements ClickHandler" since we suppose developer knows what he is doing.
In case of implementing the interface, NetBeans could also add the necessary methods - and developer has not to go to Class declaration to make all things by hand.

I think is the same as proposed in issue 88461, but I'm not sure.
Comment 1 Svata Dedic 2015-10-02 13:11:02 UTC
*** Bug 88461 has been marked as a duplicate of this bug. ***