Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] Facets ext.p: template element

Early on WTP project creation wizards were simpler. The only difference between wizards was the list of fixed facets and the initial preset to select. Those two items were bundled together into a template concept. Over time the initial selection was shifted to be based on the target runtime instead, so the preset portion of the template was deprecated. That leaves template concept to be just an id for a list of facet id. Haven't looked to see how much code reference there still is to this extension point. A few that I've seen looked like dead code to me. As in wizard datamodels have shifted to hardcodding the list of fixed facets in their initialization code, which seems like the right thing to do at this point.

In any case, the templates extension point is going to be deprecated for 3.2 and will be gone completely from the new incarnation of the API in the fproj project.

Let me know if you still have questions about this.

Konstantin Komissarchik
Consulting Member of Technical Staff
Oracle

This message was sent from my mobile device.

On Jun 8, 2009, at 9:49, Paul Fullbright <paul.fullbright@xxxxxxxxxx> wrote:

Necromancing the following WTP-dev thread because I have the same question.  Note that templates are actually used by the class org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard (and extenders).  If we're using deprecated code, we surely have some story for what's going to happen instead?

- Paul


From: wtp-dev-bounces@xxxxxxxxxxx [mailto:wtp-dev-bounces@xxxxxxxxxxx] On Behalf Of Komissarchik, Konstantin
Sent: Thursday, July 10, 2008 9:36 AM
To: General discussion of project-wide or architectural issues.
Subject: [wtp-dev] Facets ext.p: template element

What are you trying to accomplish by using the template extension point? The template concept was something that was tried early on, but was not a terribly successful or useful concept and is not in active use to my knowledge. Probably needs to be marked deprecated...
 
- Konstantin
 


From: wtp-dev-bounces@xxxxxxxxxxx [mailto:wtp-dev-bounces@xxxxxxxxxxx] On Behalf Of Stoilov, Dimo
Sent: Thursday, July 10, 2008 7:38 AM
To: General discussion of project-wide or architectural issues.
Subject: [wtp-dev] Facets ext.p: template element

Hello,
 
 Facets ext.p: the  "template "  element has a child element "preset". It is deprecated  and  the shema also reqires it. What  should be used instead?
 
I couldn't find anything about the template element in this article:http://www.eclipse.org/articles/Article-BuildingProjectFacets/tutorial.html#defining.presets  Is there any other documentation about it's usage?
 
Greetings,
Dimo
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Back to the top