Re: Annotation Type TemplateRegistration content

2020-01-11 Thread Bilu
thanks you i will have a look on that solution too. Le 07/01/2020 à 12:57, Boris Heithecker a écrit : > Hi Bilu, > if I understand you correctly, you want to make sure that your sample > template is always adapted to the newest version of some features. In > this case, consider using the following

Re: Annotation Type TemplateRegistration content

2020-01-07 Thread Boris Heithecker
Hi Bilu, if I understand you correctly, you want to make sure that your sample template is always adapted to the newest version of some features. In this case, consider using the following API feature: @TemplateRegistration can be placed on a static method to register an InstantiatingIterator for a

Re: Annotation Type TemplateRegistration content

2020-01-06 Thread Bilu Al
Haha, not frustrated at all, in fact Geerjtan help me a lot understand that the way i was taking the issue wasn't the right way as things doesnt' work like that in Netbeans filesystem :) Le lun. 6 janv. 2020 à 15:42, Zahid Rahman a écrit : > Don't sound frustrated , only a person with your tale

Re: Annotation Type TemplateRegistration content

2020-01-06 Thread Zahid Rahman
Don't sound frustrated , only a person with your talent could have figured it out. That's why you didn't get the help you wanted. Very nice of you to share the solution. On Mon, 6 Jan 2020, 11:06 Bilu Al, wrote: > Thanks a lot. i figure it out finally by tweaking directly the > WizardIterator c

Re: Annotation Type TemplateRegistration content

2020-01-06 Thread Bilu Al
Thanks a lot. i figure it out finally by tweaking directly the WizardIterator class: //File template = Templates.getTemplate(wiz); File template = FileUtil.toFileObject(new File("C:\\Temp\\new_cr.zip")); Le sam. 4 janv. 2020 à 21:10, Geertjan Wielenga a écrit : > Although, not quite what you wa

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
Although, not quite what you want, but you can make a wizard dynamic, like this, if you like, though again it's not exactly what you're looking for: https://blogs.oracle.com/geertjan/extension-to-extended-java-project-part-1 https://blogs.oracle.com/geertjan/extension-to-extended-java-project-par

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
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 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.

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
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 g

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
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.

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
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 > wrote: > > this is related to the Project sample registration. i want to add > a sample to

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
Again, it does not work in the way you intend. Gj On Sat, 4 Jan 2020 at 11:57, Bilu 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 pro

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
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.ne

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
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 wrote: > I think what you’re trying to achieve is not something that makes sense > from the po

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
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 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

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
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

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
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 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

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
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? >

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Geertjan Wielenga
Why? Gj On Sat, 4 Jan 2020 at 10:16, Bilu 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

Re: Annotation Type TemplateRegistration content

2020-01-04 Thread Bilu
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 L

Annotation Type TemplateRegistration content

2019-12-29 Thread Bilu Al
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/