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 28604 - Need ability to search and replace components
Summary: Need ability to search and replace components
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jan Becicka
URL:
Keywords:
: 92398 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-08 16:50 UTC by brenthale
Modified: 2016-07-07 07:28 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 brenthale 2002-11-08 16:50:40 UTC
Every once in a while, I have the need to replace one 
component with another one.  Obviously, the new component 
implements the same interface as the one I want to replace 
and so I want to keep all the events and property settings 
as the old component.

For instance, I create a new component which extended 
JTextField and would have like to do a global search and 
replace of all JTextField components with my new and 
improved component.

Currently the only work around is to go outside of 
NetBeans, into a normal text editor and search and replace 
inside of it in both the .java and .form files.  It would 
be nice if I could make this change inside of NetBeans.

Delphi has this ability if you want to look at an example 
of how it could be done.  They have a wizard that asks you 
for the old and the new component and then does the search 
and replace in the current file only or in all project 
files depending upon what you select.

Thanks
Comment 1 Marian Petras 2003-04-24 14:03:31 UTC
What Brent wants is one of possible Java refactoring features.
Changing component to Java.
Comment 2 Jan Pokorsky 2008-10-16 16:50:57 UTC
*** Issue 92398 has been marked as a duplicate of this issue. ***
Comment 3 Martin Balin 2016-07-07 07:28:27 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss