Re: Issues while generating multiple files in an wizard
geertjan wielenga <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.devel |
|---|---|
| Organization | Oracle Corporation |
| Message-ID | <[email protected]> |
As always on this mailing list, check a very simple application reproducing your problem onto GitHub and then send a link to that GitHub repo here so someone can look at it and help. Gj On 28-1-2016 21:13, user0815 wrote: > Hi, > > I'm currently trying (again) to create multiple files in a single new project wizard. > > I'm following the steps as described in https://blogs.oracle.com/geertjan/entry/multiple_files_from_a_single . > > The main difference is that I'm using @TemplateRegistration annotations instead of the layer xml. > > I'm able to create all files I'm interested in. > > Unfortunately there are some side effects: All used templates show up in the new project list instead of just the wizard/ main template. > > IMO there are 2 options: > > 1) Hide all dependend templates in the new project selection > > Question: Is it possible to hide registered templates in the New File/New Project wizard? > > 2) Bypass the TemplateRegistration and use a different way for getting the FileObject of a template. > > Question: Is it possible to get the FileObject for an registered template eg. by its folder and name? Each template will be regsitered by a new file wizard, my new project wizard should just create multiple of those artefacts at once in an convinient way. > > TIA + Best regards, > > > >