As you've learned so far in this discussion, that's not what the New Project dialog is used for.
Gj On Sat, Jan 4, 2020 at 4:47 PM Bilu <albi...@gmail.com> wrote: > 1. You think that you should be able to open newly generated projects via > the New Project dialog. > > =>this is not what i am expecting. > > 2. But that is not what the New Project dialog is for. That is for > generating new projects, which you’ve already done some other way. > > => Indeed i want to generate new project for my type of project i > already set via a project type module. and i want the basic files including > into the new > > generated project of my specific project type to be add > dynamically. > > > Le 04/01/2020 à 18:30, Geertjan Wielenga a écrit : > > Each project you generate should simply be openable via the Open Project > menu item, assuming it conforms to your project type. > > What you think you’re doing is different to what you’re actually doing: > > 1. You think that you should be able to open newly generated projects via > the New Project dialog. > > 2. But that is not what the New Project dialog is for. That is for > generating new projects, which you’ve already done some other way. > > Can you use the Open Project dialog to open your projects? > > Gj > > > On Sat, 4 Jan 2020 at 14:24, Bilu <albi...@gmail.com> wrote: > >> well thanks anyway :) >> Le 04/01/2020 à 16:03, Geertjan Wielenga a écrit : >> >> >> Again, it does not work in the way you intend. >> >> Gj >> >> On Sat, 4 Jan 2020 at 11:57, Bilu <albi...@gmail.com> wrote: >> >>> this is related to the Project sample registration. i want to add a >>> sample to the New Project wizard. The sample could function either as an >>> example to the user or as a new project template that provides the basic >>> files needed to get started working on a technology of some kind: >>> https://platform.netbeans.org/tutorials/nbm-projectsamples.html#tweaking >>> >>> In the example in the tutorial the basic files are provided via the >>> content element as a resource relative to the package and what i want >>> is to provide a resource outside instead >>> >>> @TemplateRegistration( >>> folder = "Project/Samples/Standard", >>> displayName = "#MySampleApplication_displayName", >>> description = "MySampleApplicationDescription.html", >>> iconBase = "org/myorg/additionalsamples/MySampleApplication.png", >>> *content = "MySampleApplicationProject.zip")* >>> >>> i hope it is more clear for you >>> Le 04/01/2020 à 15:38, Geertjan Wielenga a écrit : >>> >>> It sounds like what you’re generating should simply be opened via Open >>> Project menu item, i.e., this does not relate to the New Project wizard at >>> all. >>> >>> Gj >>> >>> On Sat, 4 Jan 2020 at 11:33, Geertjan Wielenga <geert...@apache.org> >>> wrote: >>> >>>> I think what you’re trying to achieve is not something that makes sense >>>> from the point of view of how NetBeans works. >>>> >>>> Gj >>>> >>>> On Sat, 4 Jan 2020 at 11:22, Bilu <albi...@gmail.com> wrote: >>>> >>>>> i don't think this will works as i can not generate the resource into >>>>> a package once the module is build and running that's why i would like to >>>>> generate it to a temp folder and fetch it each time the New project wizard >>>>> is called >>>>> Le 04/01/2020 à 15:06, Geertjan Wielenga a écrit : >>>>> >>>>> >>>>> So generate it into a package in your module instead if generating it >>>>> in your temp folder. >>>>> >>>>> Gj >>>>> >>>>> On Sat, 4 Jan 2020 at 11:00, Bilu <albi...@gmail.com> wrote: >>>>> >>>>>> because the resource has to be generated dynamically. so i need to >>>>>> generate it somewhere on the drive (lets say C:/Temp/) before make >>>>>> it available to the New project Wizard each time to be sure to have the >>>>>> last version of the resource. >>>>>> Le 04/01/2020 à 14:17, Geertjan Wielenga a écrit : >>>>>> >>>>>> >>>>>> Why? >>>>>> >>>>>> Gj >>>>>> >>>>>> On Sat, 4 Jan 2020 at 10:16, Bilu <albi...@gmail.com> wrote: >>>>>> >>>>>>> Hello >>>>>>> >>>>>>> Documentation talk about File contents, as resources relative to the >>>>>>> package of this declaration: >>>>>>> http://137.254.56.27/8.0/javadoc/org-openide-loaders/org/netbeans/api/templates/TemplateRegistration.html#content() >>>>>>> >>>>>>> But is there a way to declare file outside of the package? >>>>>>> >>>>>>> Thanks to help >>>>>>> Le 29/12/2019 à 10:39, Bilu Al a écrit : >>>>>>> >>>>>>> Hello, is there a way to specify Template registation (Project sample >>>>>>> declaration) content outside package declaration as my ressource is >>>>>>> available on the disk? This only work when resource relative to the >>>>>>> package of this declaration >>>>>>> >>>>>>> @TemplateRegistration( >>>>>>> folder = "Test", iconBase = >>>>>>> "org/netbeans/modules/templatesui/x.png", >>>>>>> page = "org/netbeans/modules/templatesui/x.html", >>>>>>> content = "C:/Temp/content.zip" >>>>>>> ) >>>>>>> >>>>>>> --------------------------------------------------------------------- >>>>>>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org >>>>>>> For additional commands, e-mail: users-h...@netbeans.apache.org >>>>>>> >>>>>>> For further information about the NetBeans mailing lists, >>>>>>> visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >>>>>>> >>>>>>>