|
|
Re: Creating plugin project programatically [message #1080837 is a reply to message #1066554] |
Tue, 06 August 2013 12:36 |
Tanmay Wani 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.
Thanks and Regards,
Tanmay Wani
[Updated on: Tue, 06 August 2013 12:36] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03743 seconds