How to make Netbeans' templates that creates more than 1 file?

柔情痞子 提交于 2019-12-01 04:30:58

You could create your own project template. Here's some instructions for doing that:

http://netbeans.dzone.com/tips/hack-your-own-custom-project-t

So, you could create a new project and use the "JSF Pages From Entity Beans" wizard and then add your own files. Then you would follow from step 2 of the above link and create the template.

Edit After giving this some more thought I think that what you're really looking for is creating a File Template Module:

http://platform.netbeans.org/tutorials/60/nbm-filetemplates.html

Edit 2: Based on your comment I'm posting a url to Geertjan's blog for a short description on how to create multiple files from a single wizard*. However, after more reflection I understand that this is also not what you want. What you really want is the ability to add another file to an existing wizard (JSF from Entity). This is of course possible but not as simple as creating your own wizard as the only way to do such a thing is to modify the source code for that particular module (JSF Support).

*Understand that the above tutorial is showing only a snippet of how to create your own New File wizard. There are a few aspects that are assumed to be understood already and not discussed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!