[ https://issues.apache.org/jira/browse/NETBEANS-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16647918#comment-16647918 ]
Jan Lahoda commented on NETBEANS-1410: -------------------------------------- So, I have no doubt there are questions about the guarded blocks (even though for this particular question, I think it was better the guarded blocks were there). I doubt, however, that every user will understand when their manually edited code disappears as the form editor re-generates the code. Are there data to believe everyone will understand this and won't (rightfully, if you ask me) complain? To me, that looks like a data loss, which is always very bad. > Remove the blocking code section in java files for swing > -------------------------------------------------------- > > Key: NETBEANS-1410 > URL: https://issues.apache.org/jira/browse/NETBEANS-1410 > Project: NetBeans > Issue Type: Improvement > Components: guibuilder - Binding, guibuilder - Code > Affects Versions: Next > Reporter: Christian Lenz > Priority: Major > > Please give us the freedom to remove the code and not create guarded blocks. > I have often the problem, that I want to remove code, that I accidentally > added via the GUI designer like double clicking the button (I always think > that I can change the label on it, no it will create an action listener for > it). IntelliJ doesn't do that and I guess the JFormDesigner will not do this > too. > So please don't say, you are not allowed to change the code. There are some > others, when you google for it, that they have also the same problem. We are > developer, we should know, what we are doing. > Customize Code will also not help to 100%. There is no reason to make such > generated code read only. Often I have to open the file in VS Code for > example, to remove the unused code which is not nice. > Cheers > Chris -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists