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.
Build 200407011917 Java 1.5.0 Beta2 Within the project window right click on Methods, select Add Method Set method parameters. i.e. name, Access private, add a parameter click Ok The new method is added at the end of the "Variables declaration - do not modify" block at the end of the java source file. Therefor it cannot be edited.
Verified on Linux, JDK1.4.2_04. Steps to reproduce: 1. Open a Java project. 2. In some package create a form (JPanel in my case). 3. In the Project view select the corresponding node, expand, select the class and expand it. 4. Select the "Methods" node and invoke the context menu. Select "Add Method...". 5. A dialog appears, change the name of the method and press "OK". 6. The newly created method is created inside the guarded block. Not sure whether this problem is in form module or in java module, so passing to form for evaluation.
Reassigning to java module.
I am raising priority to P2.
Dan, please look at this.
Fixed. /cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/SourceEditSupport.java,v <-- SourceEditSupport.java new revision: 1.8; previous revision: 1.7
Verified in 4.2 (200507061800)
Reorganization of java component