How to create a web project programmatically while another is being created? [message #208731] |
Mon, 18 February 2008 23:40 |
Eclipse User |
|
|
|
Originally posted by: david_whiteman.us.ibm.com
Hi,
I would like to have a project facet that while we are creating project
A, the facet will also create project B under the covers. Is there a
programmatic way to create a web project? I would like project B to
have the same characterstics as project A, but of course with a
different name. The reason is that we don't want to rely on or require
the user to go through the steps of creating a second project (and
typing in the same values on our custom wizard pages), when the two
projects are often desired at the same time. What's the best way to go
about this?
Thanks,
David
|
|
|
Re: How to create a web project programmatically while another is being created? [message #208770 is a reply to message #208731] |
Tue, 19 February 2008 00:45 |
Eclipse User |
|
|
|
Originally posted by: david_whiteman.us.ibm.com
David Whiteman wrote:
> Hi,
>
> I would like to have a project facet that while we are creating project
> A, the facet will also create project B under the covers. Is there a
> programmatic way to create a web project? I would like project B to
> have the same characterstics as project A, but of course with a
> different name. The reason is that we don't want to rely on or require
> the user to go through the steps of creating a second project (and
> typing in the same values on our custom wizard pages), when the two
> projects are often desired at the same time. What's the best way to go
> about this?
>
> Thanks,
> David
What I have tried so far within the execute() method of my facet install
delegate is to clone the IFacetedProjectWorkingCopy. Unfortunately that
causes an error. I also tried creating a brand new project by calling
FacetedProjectFramework.createNewProject(), and setting its name with
setProjectName(). Again, same error. Perhaps this needs to be done
using the POST_INSTALL event, since project A isn't fully done being
created yet?
David
|
|
|
Re: How to create a web project programmatically while another is being created? [message #208778 is a reply to message #208770] |
Tue, 19 February 2008 01:13 |
Eclipse User |
|
|
|
Originally posted by: david_whiteman.us.ibm.com
David Whiteman wrote:
> What I have tried so far within the execute() method of my facet install
> delegate is to clone the IFacetedProjectWorkingCopy. Unfortunately that
> causes an error. I also tried creating a brand new project by calling
> FacetedProjectFramework.createNewProject(), and setting its name with
> setProjectName(). Again, same error. Perhaps this needs to be done
> using the POST_INSTALL event, since project A isn't fully done being
> created yet?
>
> David
sorry about the interruption... I got past that problem... I'll post
back when I have spent more time with it
|
|
|
Powered by
FUDForum. Page generated in 0.04163 seconds