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 122605 - Post-Creation Code is not refactored
Summary: Post-Creation Code is not refactored
Status: RESOLVED DUPLICATE of bug 106831
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-22 20:43 UTC by rvojta
Modified: 2007-11-23 10:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rvojta 2007-11-22 20:43:30 UTC
NetBeans 6.0 RC2, Windows Vista.

Create JDialog form and name it MyDialog for example. Create private method MyDialog.MyMethod. Put JComboBox control in
to MyDialog and add 'MyMethod();' as Post-Creation Code in form editor for JComboBox control. Switch to source code, hit
the right mouse button on MyMethod() and rename it (Refactor -> Rename) to MyRefactoredMethod(). MyMethod() is
successfully renamed to MyRefactoredMethod(), but the MyMethod() in JComboBox's Post-Creation Code is not modified -
still contains call to MyMethod() -> after refactoring, I'm unable to compile my code.

IMHO MyMethod() call should be changed to MyRefactoredMethod() call in Post-Creation Code too.
Comment 1 Jan Stola 2007-11-23 10:54:09 UTC
This is one of unsupported refactoring scenarios in GUI Builder.
See issue 106831 (Updating embedded custom code - entered by the user in the GUI builder).

*** This issue has been marked as a duplicate of 106831 ***