Skip to main content

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",

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

IProjectFacet wstWebFacet = ProjectFacetsManager.getProjectFacet

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: Sat May 26 17:44:36 GMT 2018

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

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

Back to the top