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 127595 - [Pull up] Hightlight elements which already exist in the target
Summary: [Pull up] Hightlight elements which already exist in the target
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-18 06:04 UTC by tprochazka
Modified: 2010-09-23 08:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tprochazka 2008-02-18 06:04:44 UTC
Netbeans can extract Interface from existing class, but can't update it, add new method from actual class to existing 
Interface.

I suggest two solution:

1.) Add new item to feractoring methods as "Update existing interface"
or
2.) Use existing "Extract interface" and add Selectbox which existing interfaces which actual class already implementing
Comment 1 Jiri Prox 2008-02-18 08:27:55 UTC
Sorry but I cannot quite understand your request.
Can you provide more detail and/or some sample of usages. Thanks.

Anyway there already are checkboxes in extract interface dialog which allows you to move suitable elements (methods,
public static final fields, implemented interfaces) into newly introduced interface.
In addition when you want to add more elements from implementing class to interface you can use Pull Up refactoring
Comment 2 tprochazka 2008-02-20 12:16:01 UTC
"Pull Up" refactoring is almost what I need. I don't tried it before. Sorry. But it has one problem. It show also 
methods that are in the interface already. This is problem, because I don't remember which methods are in inteface 
class already. When I try make refactoring, Netbeans say error, but I must uncheck one checkbox and try it again. Much 
better would bi hidden or disable method/field which are in Interace already.
Comment 3 Jiri Prox 2008-02-20 12:38:00 UTC
sorry, A11Y was for another issue