Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Creating plugin project programatically
Creating plugin project programatically [message #291967] Tue, 27 September 2005 21:39 Go to next message
Don Sedota is currently offline Don SedotaFriend
Messages: 18
Registered: July 2009
Junior Member
Does anyone know if there are any APIs that allow creation of a plugin
project programatically (as well as the ability to affect the contents of
the generated plugin descriptor)? In 3.1, all of the APIs that are used to
create a plugin project by the "NewPluginProjectWizard" are "internal" and
not available for use outside of the plugin they are defined in.
Re: Creating plugin project programatically [message #1066554 is a reply to message #291967] Wed, 03 July 2013 07:15 Go to previous messageGo to next message
Tilak Sharma is currently offline Tilak SharmaFriend
Messages: 48
Registered: July 2009
I need to create a Java Plugin Project programmatically too..
Any help is greatly appreciated.

Re: Creating plugin project programatically [message #1080837 is a reply to message #1066554] Tue, 06 August 2013 12:36 Go to previous message
Tanmay Wani is currently offline Tanmay WaniFriend
Messages: 4
Registered: August 2013
Junior Member
You have to first create a Java project using the following JDT API:
1. org.eclipse.jdt.core.IJavaProject;
2. org.eclipse.jdt.core.IPackageFragment;
3. org.eclipse.jdt.core.JavaCore

Then, use the Plugin Development Environment API (org.eclipse.pde.core.project, org.eclipse.pde.core.plugin) to convert that java project into plugin project.

Package org.eclipse.pde.core.project in PDE API has interface IBundleProjectDescription,which is used to convert a java project into plguin.
A bundle project description can be created for an IProject via IBundleProjectService.getDescription(IProject), or you can explicitly create an object IProjectDescription, which has the method setNatureIds(String[] natures).

Hope this helps. Smile

Thanks and Regards,
Tanmay Wani

[Updated on: Tue, 06 August 2013 12:36]

Report message to a moderator

Previous Topic:Activator
Next Topic:Newbie With No Java Virtual Machine Issues
Goto Forum:

Current Time: Mon Jun 25 18:09:05 GMT 2018

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

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

Back to the top