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.
Summary: | allow refactoring non-editable parts of code inside initComponents() method | ||
---|---|---|---|
Product: | guibuilder | Reporter: | benderamp <benderamp> |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
benderamp
2008-10-06 21:55:18 UTC
The refactoring of guarded sections inside form files is handled by the form module. Reassigning. *** This issue has been marked as a duplicate of 106831 *** Not all refactorings work in the custom code in guarded blocks, but such a simple renaming should work. I've just tried the described case in current 6.5 dev build and it works for me - the custom creation is updated to the new field name properly. This could have been fixed after 6.1. As for the editing inside initComponents - yes, it would be nice, but it would be quite complicated to implement. The main problem is that we don't really know how the code maps back to the GUI elements and attributes - to interpret what to do when you click somewhere in the code. If we knew this, we would be quite close to full 2-way editing. Note that you don't have to "open modal dialog for each code part for each ui element". There is "Customize Code" action in context menu opening a dialog where you can edit all custom code for selected component and can select other components without leaving the dialog. |