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.
Old RefactorIT was adding a javadoc template do getters and setters created using encapsulate. It would be nice if the built-in refactoring were also adding simple javadoc comments to them.
Any comments from the refactoring team?
Yes, this is reasonable enhancement :)
Cool, thanks Jan ;) So, it there a chance to be included in 4.0?
If we want to address this, we need a UI spec. Reassigning to Dusan. I guess a new setting somewhere (in Options window) will be necessary so that users can customize the javadoc. Hopefully we will be able to add this in promoF (nb4.2).
*** Issue 53148 has been marked as a duplicate of this issue. ***
*** Issue 61422 has been marked as a duplicate of this issue. ***
What does "future" means please? It seems too unclear to me. Is NB6 "future"? I guess no from the target milestone dropdown list :-(
Old target milestone was 5.0 - which was wrong. So I changed it to future, which means, that it is not yet clear which release will include this enhancement.
A similar request has been made at: http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=102892 According to on-line help (Topic: Generating Getter and Setter Methods) : You can generate getter and setter methods for a field in one of the following two ways: By using the code completion box... By using the Encapsulate Field refactoring command... Since this issue (48296) deals with the 'encapsulate method', perhaps it will also handle the other method of using 'code completion'. If not, please inform and a separate RFE can be created for code completion method and the two issues linked via URLs in description.
*** Issue 71777 has been marked as a duplicate of this issue. ***
I am working on this.
krajeswaran: Create Getter Setter is something else. It does none refactoring. implemented as http://hg.netbeans.org/main/rev/ab2b7b02a475
If I understand the previous comment correctly, you are closing the issue because the implementation area is not relevant to the requested change. This is not acceptable. This RFE seeks to have JavaDoc automatically inserted when getters and setters are created. How that is implemented should be opaque to the issue status. On casual inspection, the changes at http://hg.netbeans.org/main/rev/ab2b7b02a475 do not appear to satisfy the requirements of this issue, therefore I am reopening it.
Please read the issue's summary. The issue is about 'Add javadoc when using encapsulate'. The Encapsulate refactoring UI provides possibility to add comments for generated methods now. I whould say it is fixed.
Integrated into 'main-golden', available in NB_Trunk_Production #164 build Changeset: http://hg.netbeans.org/main/rev/ab2b7b02a475 User: Jan Pokorsky <jpokorsky@netbeans.org> Log: #79042: Encapsulate Fields enhancements * select buttons #118849 * insert point * sort by * comments #48296, #73477 * setters for final fields * new layout
Verified and closed.