Community
Participate
Working Groups
The PDE plugin does allow one to convert a normal java project to a PDE project, but if at some future point if one decides to have a project no longer be a plugin and convert back to a normal java project, there is no easy way to do that. One has to manually edit a whole bunch of eclipse config files. There should be a UI/menu item to do this easily.
Since you already know the exact files to be updated, how about submitting a patch as well?
Its the .project file that needs to be updated but I dont know PDE code well enough to submit a patch
Its more than just .project file. The conversion logic is in ConvertProjectToPluginOperation in org.eclipse.pde.ui
It's pretty difficult to "unconvert" a project. Are you saying that whatever is on your bundle classpath (including dependencies) gets put on the normal JDT classpath when uncoverted?
well basically once i get rid of the plugin.xml and manifest.mf i see all kinds of errors in the error log view cause pde expects those files for a plugin project. i have to manually 'unconvert' to get rid of those errors
Also note that sometimes even after manually editing the .project file, I had to delete the project from the workspace and re import it get it to build without errors.
Thats right. Because a plug-in project is not just meta-inf and .project file. A lot more goes with them like classpath settings, dependent plug-in resolutions. When you uncovert how to deal with extensions, extension point, API tooling, etc. I don't see a business use case to go through all this trouble. And since all the committers are occupied with priority stuff so I don't see anyone picking it up anytime soon.
We currently have no plans to provide this feature. A plug-in is always also a valid Java project and the manual process is relatively easy. 1.) Remove nature from .project 2.) Remove OSGi entries from MANIFEST.MF 3.) Delete build.properties