Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » JDT creating dynamic web project
JDT creating dynamic web project [message #1065267] Tue, 25 June 2013 08:01
Amr Khaled is currently offline Amr KhaledFriend
Messages: 2
Registered: June 2013
Junior Member
I want to develop a plug-in in eclipse that creates new dynamic web project. I create Java project and add project facet to convert it to dynamic web project, but it creates a static web project.

any help is appreciated

IJavaProject javaProject = createProject(projectName +"-web",new String[] {JavaCore.NATURE_ID});

IFacetedProject facetedProject =
ProjectFacetsManager.create(javaProject.getProject(), true, null);

IProjectDescription description1 = javaProject.getProject().getDescription();
description1.setNatureIds(new String[] {"org.eclipse.jem.workbench.JavaEMFNature",
"org.eclipse.wst.common.modulecore.ModuleCoreNature",
"org.eclipse.wst.common.project.facet.core.nature",
"org.eclipse.wst.jsdt.core.jsNature"});

javaProject.getProject().setDescription(description1, null);

IProjectFacet wstWebFacet = ProjectFacetsManager.getProjectFacet
(IModuleConstants.WST_WEB_MODULE);

facetedProject.installProjectFacet(wstWebFacet.getDefaultVersion(), null, null);
Previous Topic:How to customize project renaming behavior?
Next Topic:earlyStartup() not getting invoked when launched as a product
Goto Forum:
  


Current Time: Fri Nov 21 16:35:35 GMT 2014

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

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