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.
It should not be offered for Rails project, it should be limited only for project that support Java templates (I guess). In Rails project it throws: java.lang.IllegalArgumentException: No folders selected at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:85) at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:64) at org.netbeans.modules.websvc.rest.wizard.RESTServicesFromEntitiesIterator.initialize(RESTServicesFromEntitiesIterator.java:129)
Actually, this template should only appear in a web project, so we also need to make sure it doesn't show up in ejb, java projects, etc.
OK, then try adding this into the layer file where template is registered <attr name="templateCategory" stringvalue="web-types"/>
Thanks Pavel, this works. I will checked in the changes soon after the meeting.
OK, Nam, I already fixed that. Review if you want. /cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/resources/layer.xml,v <-- layer.xml new revision: 1.10; previous revision: 1.9 /cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/Bundle.properties,v <-- Bundle.properties new revision: 1.8; previous revision: 1.7 /cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/wizard/resources/RESTServicesFromEntities.html,v <-- RESTServicesFromEntities.html new revision: 1.2; previous revision: 1.1
It's works perfectly. Thanks.
v.