Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to select preset configuration automatically
How to select preset configuration automatically [message #176586] Tue, 08 August 2006 18:21 Go to next message
Lenora Wright is currently offline Lenora WrightFriend
Messages: 15
Registered: July 2009
Junior Member
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?

Eclipse 3.2
Re: How to select preset configuration automatically [message #176588 is a reply to message #176586] Tue, 08 August 2006 18:44 Go to previous messageGo to next message
Eclipse UserFriend
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 #176594 is a reply to message #176588] Tue, 08 August 2006 18:58 Go to previous messageGo to next message
Lenora Wright is currently offline Lenora WrightFriend
Messages: 15
Registered: July 2009
Junior Member
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?
Re: How to select preset configuration automatically [message #176597 is a reply to message #176594] Tue, 08 August 2006 19:05 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to select preset configuration automatically [message #176599 is a reply to message #176597] Tue, 08 August 2006 19:17 Go to previous message
Lenora Wright is currently offline Lenora WrightFriend
Messages: 15
Registered: July 2009
Junior Member
I am using a June drop of 1.5.0. I'll get 1.5.1 and test with that.
Thanks for the pointer.
Previous Topic:Publishing failed
Next Topic:wtp 1.0.3 vs wtp 1.5.1
Goto Forum:
  


Current Time: Thu Apr 25 14:25:59 GMT 2024

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

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

Back to the top