You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Ruslan Lopez Carro (Jira)" <ji...@apache.org> on 2020/11/25 14:22:00 UTC
[jira] [Created] (NETBEANS-5063) Change "private" to "protected"
modifier for event listener methods
Ruslan Lopez Carro created NETBEANS-5063:
--------------------------------------------
Summary: Change "private" to "protected" modifier for event listener methods
Key: NETBEANS-5063
URL: https://issues.apache.org/jira/browse/NETBEANS-5063
Project: NetBeans
Issue Type: Improvement
Components: guibuilder - Code
Affects Versions: 12.1
Environment: Product Version: Apache NetBeans IDE 12.1
Java: 13.0.1; Eclipse OpenJ9 VM openj9-0.17.0
Runtime: OpenJDK Runtime Environment 13.0.1+9
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
Reporter: Ruslan Lopez Carro
When using the form builder to generate an event listener method, the only option is the creation of
private listener methods:
{code:java}
private void handleWindowClosing(java.awt.event.WindowEvent evt) {
// TODO add your handling code here:
}{code}
At least generate the method signature using "protected" modifier to allow for inheritance/override:
{code:java}
protected void handleWindowClosing(java.awt.event.WindowEvent evt) {
// TODO add your handling code here:
}{code}
Reported previously here: https://bz.apache.org/netbeans/show_bug.cgi?id=88254
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists