Skip to main content


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 13:56 Go to next message
Eclipse UserFriend
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 06:57 Go to previous messageGo to next message
Eclipse UserFriend
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 13:12 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
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 20:20 Go to previous message
Eclipse UserFriend
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: Wed Apr 24 20:36:23 GMT 2024

Powered by FUDForum. Page generated in 0.02859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top