Re: Extending Natures

Tomas Zezula <[email protected]> Fri, 29 Aug 2003 09:46:30 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Organization Sun Microsystems
Message-ID <[email protected]>
Hi Joe,
as far as I know the base natures are specified statically in the
nature-file (ProjectDescriptor section).
You can't change it dynamically in the current implementation.
To do what you described, you will need to create two natures and
two project templates.

I hope it will change, there was a request from the RMI module and the
CORBA module to allow adding natures dynamically into the project, but
this feature was canceled. I hope this will change.
Adding natures should be quite easy to implement, removing the nature is
much worse and in my personal opinion it is not needed.

Tomas

On Fri, 2003-08-29 at 01:37, Joe Warzecha wrote:
> I have a situation where, depending on what the
> user selects on my project creation wizard, my
> nature may extend nature "a" or nature "b". How
> can I do this? It seems like all I've seen is
> how to specify which natures my nature extends
> in my nature.xml file and I don't want to specify
> that it extends both "a" and "b".
> 
> Also, is there a way to change what natures my
> nature extends? For example, after the project is
> created, via a system action, I may want to change my
> nature so that it extends nature "b" instead of nature
> "a". How can I do this?
> 
> Thanks,
>    -Joe-
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>