Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How To Programmatically Add Nature And Builders Into A Project
How To Programmatically Add Nature And Builders Into A Project [message #336931] Tue, 14 July 2009 09:56 Go to next message
Eclipse User
Originally posted by: runzhou.li.gmail.com

Hi,

I created a new project type with a corresponding wizard. What is left now
is to add the necessary builders and nature to the project when
performFinish() is called. Note that the project itself is pretty much a
Static Web Project clone, just with a simpler project directory format and
unique project type name and icon.

Need some help with this, thank you :)

--
Runzhou Li
Re: How To Programmatically Add Nature And Builders Into A Project [message #336940 is a reply to message #336931] Wed, 15 July 2009 02:57 Go to previous messageGo to next message
Eclipse User
Originally posted by: aurelien.pupier.esial.net

Runzhou Li a écrit :
> Hi,
>
> I created a new project type with a corresponding wizard. What is left now
> is to add the necessary builders and nature to the project when
> performFinish() is called. Note that the project itself is pretty much a
> Static Web Project clone, just with a simpler project directory format and
> unique project type name and icon.
>
> Need some help with this, thank you :)
>
> --
> Runzhou Li
>
>

Hi Runzhou,

for the nature, see extension point : org.eclipse.core.resources.natures

In the class that for teh nature, it will extend IProject Nature. You need to fill configure method to add specific information to your project.

Hope this will help.
Re: How To Programmatically Add Nature And Builders Into A Project [message #336948 is a reply to message #336931] Wed, 15 July 2009 09:12 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
Runzhou Li wrote:
> What is left now
> is to add the necessary builders and nature to the project when
> performFinish() is called.

IProject.setDescription(). The description of the project has the
natures and builders of it.


- Prakash
---
http://blog.eclipse-tips.com
Re: How To Programmatically Add Nature And Builders Into A Project [message #336956 is a reply to message #336948] Wed, 15 July 2009 16:20 Go to previous message
Eclipse User
Originally posted by: runzhou.li.gmail.com

Thanks guys, I ended up implementing this by adding a Static Web Project
facet to the project when performFinish(), and it works great :)

"Prakash G.R." <grprakash@gmail.com> wrote in message
news:h3kkjj$i0a$3@build.eclipse.org...
> Runzhou Li wrote:
>> What is left now is to add the necessary builders and nature to the
>> project when performFinish() is called.
>
> IProject.setDescription(). The description of the project has the natures
> and builders of it.
>
>
> - Prakash
> ---
> http://blog.eclipse-tips.com
Previous Topic:How To Programmatically Refresh The Workspace After Creating A New Project
Next Topic:How to track modified files since last ant task run
Goto Forum:
  


Current Time: Thu Jul 24 09:13:35 EDT 2014

Powered by FUDForum. Page generated in 0.01557 seconds