some time ago I wrote question about generator of serialVersionUID in netbeans. After that I saw issue in bugzilla describing this problem. I decided to write this plug-in because I can't see any progress on this issue. For now it generates only default serialVersionUID = 1L. I am working on hash method that generates serialVersionUID from fields and methods. You can find plug-in on netbeans plug-in site.
Thanks to geertjan's posts Fixable hint and Java Hint Generator development was really easy.
Note: Third picture shows code generator which works only in netbeans 6.1-dev. You can download plug-in for 6.1-dev from this location.
Fixable editor hint
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPQKHM62zXCk4l13SNixIJXz9TDwnSp67CUmQg2MtPoDXNetOCvaGK5u4F6bCLuxQWeF8LaDJJbhB45vmiZJL3gC-pDlypzVrL0V7RH-uEzcb9qYlDHClCX7AFwj7Gd1TBxImU/s320/serial1.png)
Generated serialVersionUID
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaKXJ6wh5itYPAM7ahgNaV-9LJVgNGbb5a5qH7GZsHVQQVG8VYO4Kje1IVDM0xiQhgWRaBYBESmf8abXTlBkNsw5IjH5BdgN-O9HiCMKQtYR3e2-n7wbOzb9zvTmAEN2lvzjGm/s320/serial2.png)
Code generator from context menu works only in netbeans 6.1-dev
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyHcGYOKTb6TsTNGCEdOiIzSSNxODq5pWkSk1I9Mh4yWxKrSCXdGhrvOwdC7Zsiwc5KX8cTyjrjHbjMqpAIlLZYTyYCcprxG4WG8rf4JpNVl7x3rVcVbcjHxaxGMH_ciYqIhyS/s320/serial3.png)
1 comment:
Did the plugin work in NB 6.1-dev ?
As in the plugin page http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=6887
there is a Plugin Owner's Notes:
This release doesn't work in netbeans 6.1-dev
Post a Comment