Re: Extending existing Project Types - but not all of them
Nico Krebs <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
hi benno, Thank you for your quick reply, i would like to have both project types avaiable in the new project wizard: html5 project and my SpecialWebProject. Already thought about using the layer file but i don`t know yet, how to do this. Though, tediousness is a good thing! Is there a sample or some other hints available on the web, what should i read? greetz, Nico > Am 25.04.2016 um 08:44 schrieb markiewb <[email protected]>: > > Hej Nico, > > How about duplicating the relevant layer.xml configurations for your project type from the original project type? It may be tedious, but a doable. Once you found out all the relevant places to copy from, you can write a unit/integration test to check, whether your configuration is up to date to the platform configuration. > > Or perhaps it is possible to hide the original project type from the “new project” wizard? > > Greetings, Benno > > Från: Nico Krebs <mailto:[email protected]> > Skickat: Sonntag, 24. April 2016 12:45 > Till: [email protected] <mailto:[email protected]> > Ämne: [platform-dev] Extending existing Project Types - but not all of them > > Hi, > > I have a folder containing some HTML/CSS/JS-Files. > To treat this folder as a separate project type, I extended existing project types like webclient project which already support everything i want for my new Project Type (refactoring, js unit testing support, etc.) > > When i extend that webclient project type with some nodes or option panels, all webclient projects will have those extensions. > > This is not intended. i would rather take the webclient project and redefine it under another name, looking for a special file i would put into the project folder. > > I could just copy and modify the webclient project`s code but this seems to be a little too much for the task and i would miss all the updates or would have to merge them into the repo manually. > > Is it possibe to re-use an existing project and not influence the behaviour of the original project type - without making a copy of the webclient project? > > Thanks in advance for any help, > Nico