eclipse-plugin-dev

Adding web facet to project without creating EAR

I am trying to convert a java project to a dynamic web project programmatically by adding the required project facets. Here is my code: IProjectFacet JAVA_FACET = ProjectFacetsManager.getProjectFacet("jst.java"); IProjectFacet WEB_FACET = ProjectFacetsManager.getProjectFacet("jst.web"); iFacetedProject.installProjectFacet(JAVA...