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

Summary: Post-Creation Code is not refactored
Product: guibuilder Reporter: rvojta <rvojta>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: issues
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:

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 ***