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.
TN: Why not generate from one template multiple files? JT: As inception review said it is not needed. TN: Still it might be useful. PP: CRUD application is our usecase. JT: You can always call for (DataObject obj : ...) obj.createFromTemplate(....); JT: Enough? RK: Let's solve in another phase and in another review. PP: Enough to have multiple small templates, but it is necessary to show and edit them in Template Manager. *TCA*: necessary to show and edit them in Template Manager meaninfully.
I think I have a fix, I'll attach a diff.
Created attachment 38423 [details] One can use "simple" property to hide things from template manager
Looks good to me.
Can you explain the connection between the requirement ("enough to have multiple small templates, but it is necessary to show and edit them in Template Manager") and the fix (hide some folders from Template Manager)? There is no explanation here of how you expect compound templates to work.
I see, sorry, I was talking to Martin A. and did not realize that others do not know the details of our discussion. > Enough to have multiple small templates, but it is necessary to show and > edit them > in Template Manager. With this fix you can create a Templates/EJB3.0 folder and put there all the small templates you need, and then you can create on "big" template Templates/EntityJavaBean.instance that delegates to all the small templates in the EJB3.0 folder and tell that it is "simple"=Boolean.FALSE. That way this "big" template is not going to be visible in Template Manager, just in New File wizard. Imho, this is the needed enhancement that allows "subtemplates".
No more comments? Then I integrate tomorrow...
arch/arch-openide-datasystems.xml; /shared/data/ccvs/repository/openide/arch/arch-openide-datasystems.xml,v <-- arch-openide-datasystems.xml new revision: 1.36; core/favorites/src/org/netbeans/modules/favorites/templates/TemplatesPanel.java,v <-- TemplatesPanel.java new revision: 1.13; previous revision: 1.12 done Checking in core/favorites/test/unit/src/org/netbeans/modules/favorites/templates/TemplatesPanelTest.java; /shared/data/ccvs/repository/core/favorites/test/unit/src/org/netbeans/modules/favorites/templates/TemplatesPanelTest.java,v <-- TemplatesPanelTest.java new revision: 1.4;