|
Re: Dynamic web projects [message #212846 is a reply to message #212774] |
Wed, 23 April 2008 18:28 |
Eclipse User |
|
|
|
Originally posted by: david_whiteman.us.ibm.com
Klausen wrote:
> Hi,
>
> I need to program a plugin that generates a HTML file. The HTML file
> should be stored in a dynamic web project. Before the generation starts,
> the user should be able to select an existing dynamic web project and
> create a new one.This leads me to my two questoins:
>
> 1) How can I determine if a project a a dynamic webproject? Which
> natures / facets must be installed?
>
> 2) How can I call the "Create Dynamic Web Project" wizard? I could not
> fin dthe class.
>
> Thanks a lot,
>
>
> Klaus
>
Do you want to programmatically generate a dynamic web project? If so
you can use ProjectFacetsManager.create() to create the project, the
getProjectFacet() method to get the facet, and
IFacetedProject.installProjectFacet() to install it.
If you are just wanting to add special behavior to existing dynamic web
projects for generating HTML files, then you can build your own facet
using the framework. See the following article:
http://www.eclipse.org/articles/Article-BuildingProjectFacet s/tutorial.html
HTH,
David
|
|
|
|
Powered by
FUDForum. Page generated in 0.03838 seconds