[jira] [Commented] (NETBEANS-1410) Remove the blocking code section in java files for swing

2018-10-14 Thread Christian Lenz (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16649373#comment-16649373
 ] 

Christian Lenz commented on NETBEANS-1410:
--

So in general we do the best to inform the user to, that it could be bad to 
modify the code, but if he really want this to do that, he should be doing this.

> 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



[jira] [Commented] (NETBEANS-1410) Remove the blocking code section in java files for swing

2018-10-14 Thread Christian Lenz (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16649372#comment-16649372
 ] 

Christian Lenz commented on NETBEANS-1410:
--

I understand your point. The thing is how it is communicated, IMHO. Could be 
one part of it. What I can say the freedom would be awesome and if we would 
like to find a solution I mean the sections of GEN-EDIT (Guarded/Blocked code) 
could be optional. First you have the comment like "// Generated Code - DON'T 
MODIFY" That's good but it could be like this: *// Generated Code - Modify on 
your own risk* With a link to a documentation of that editor feature. And it 
could be still guarded/blocked but what about an advanced option to make it not 
blocked anymore? For some advanced users like us or of course others? How does 
that sounds?

> 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



[jira] [Commented] (NETBEANS-1410) Remove the blocking code section in java files for swing

2018-10-12 Thread Jan Lahoda (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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



[jira] [Commented] (NETBEANS-1410) Remove the blocking code section in java files for swing

2018-10-12 Thread Christian Lenz (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16647760#comment-16647760
 ] 

Christian Lenz commented on NETBEANS-1410:
--

Here is such a question: 
https://stackoverflow.com/questions/17131589/how-to-change-non-editable-generated-code-in-netbeans

> 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



[jira] [Commented] (NETBEANS-1410) Remove the blocking code section in java files for swing

2018-10-12 Thread Christian Lenz (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16647735#comment-16647735
 ] 

Christian Lenz commented on NETBEANS-1410:
--

But this is totally fine by the designer. And the people will know that this is 
not a two-way editor which is also totally fine. After they see the changes and 
what happen, they will understand. The thing is that this is a big restriction 
and we should be not that restricted at all. Some people likes it, some not and 
often you found question like, how can I delete/change the code that is 
guarded. Maybe we should discuss it more or less at the mailing list, because I 
can see, that this could be not an easy topic.

> 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



[jira] [Commented] (NETBEANS-1410) Remove the blocking code section in java files for swing

2018-10-12 Thread Jan Lahoda (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16647704#comment-16647704
 ] 

Jan Lahoda commented on NETBEANS-1410:
--

I believe the reason is that the form editor rewrites the sections when the 
form is modified. So any manual change may be lost. Of course, some developers 
may be fine with that (e.g. never opening the file again in the form editor), 
but I doubt most developers will understand the form editor is not a two-way 
editor.

> 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