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 161624 - Format code generated by UI editor
Summary: Format code generated by UI editor
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Windows 10 x64
: P3 blocker with 2 votes (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2009-03-31 18:45 UTC by tomkanarski_kits
Modified: 2016-09-12 09:49 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description tomkanarski_kits 2009-03-31 18:45:24 UTC
Code generated by the UI design editor is locked in the Java source editor.  When the source is formatted using
ALT-SHIFT-F, the generated code is not reformatted.  The code should conform to the formatting rules that are currently
in effect.  Reformatting the generated code should remain locked and it should have no effect on program behavior.
Comment 1 MackSix 2012-03-24 03:28:31 UTC
Existing GUI Editor generated code indentation is now reformatted whenever a new Event is added to a component, but ALT-SHIFT-F does not reformat it. It seems this would be easy now to make happen. 

Also, existing GUI Editor generated Event code does not reformat when a new Event is added like the rest, so this needs to fixed for both events that cause reformatting.
Comment 2 lehel 2012-03-24 04:56:45 UTC
I remember using Delphi programming language in the old times, the generated code
by the UI design editor wasn't locked at all. I think this way, could be a non complicated way of solution. After all, deleting/modifying incorrectly, anything from the generated code, which affects the visual appearance, just should result to disabling the invoke of the design editor. The remove of a component from  the code, should be observed by the design editor.
Comment 3 gluk47 2012-11-05 20:23:33 UTC
I use Netbeans 7.0.1, this bug affects me.
Event handler code generated from ui designer is unaligned.

Actually, my code is to be reviewed for coding standards fitness and it's very inconvenient to use external tools to reformat netbeans-generated source.
Comment 4 Martin Balin 2016-07-07 07:28:01 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
Comment 5 fdkz 2016-09-12 09:49:07 UTC
Still not working in NetBeans IDE Dev (Build 201609120002).