|
Re: How to select preset configuration automatically [message #176588 is a reply to message #176586] |
Tue, 08 August 2006 18:44 |
Eclipse User |
|
|
|
Originally posted by: kosta.bea.com
Lenora wrote:
> I have a new project wizard that extends NewProjectDataModelFacetWizard.
> I have defined a preset facet configuration and template in plugin.xml
> and used setInitialPreset() so that my defined configuration is listed
> in the "Configurations" section during project creation. My question is
> how can I pre-select my configuration so that it pre-populates the field?
>
Did you override the getTemplate() method of the
NewProjectDataModelFacetWizard to return your template that specifies
your preset? You should not need to call setInitialPreset().
- Konstantin
|
|
|
|
Re: How to select preset configuration automatically [message #176597 is a reply to message #176594] |
Tue, 08 August 2006 19:05 |
Eclipse User |
|
|
|
Originally posted by: kosta.bea.com
Lenora wrote:
> Yes, I did override the getTemplate() method. It contains:
> return ProjectFacetsManager.getTemplate("my template id").
>
> I also made the call to setInitialPreset() because I thought that could
> be used to preselect the template. I could not find any documentation.
> I just removed that call, but the preset is still not preselected when I
> start my wizard. Any ideas?
>
What build of WTP are you using? If you are using 1.5, then you should
try out the latest 1.5.1 weekly build. There was a bug in this code
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=145656) that was fixed in
the 1.5.1 code stream on 2006-07-07.
- Konstantin
|
|
|
|
Powered by
FUDForum. Page generated in 0.03521 seconds