I don’t know that there is a one
answer for all situations, but I think it would be of benefit to support the
use of facets in most extension points that refer to natures. Note that facets
don’t conflict with natures, so it is always possible (although
sub-optimal) to define a nature to go along with your facet. The facet install
delegate would add the nature and the uninstall delegate would remove it.
One thing that we should be consistent on
is the schema that we use to refer to facets in these extension points. This is
especially important since facets are versioned. It may be desirable to
constrain to all versions or just some. We can use syntax like following to
represent a reference to one or more versions of a facet. This is similar to
the syntax already used in the facets framework extension points and there is
api for handling version expressions.
<project-facet id=”foo”
version=”1.1,1.2,>=5.0”/> <!—The version
attribute is optional (not present means all versions). The comas in the
version attributes are ORs. à
- Konstantin
From:
wtp-dev-bounces@xxxxxxxxxxx [mailto:wtp-dev-bounces@xxxxxxxxxxx] On Behalf Of David M Williams
Sent: Tuesday, November 29, 2005
1:14 PM
To: General discussion of
project-wide or architectural issues.
Subject: Re: [wtp-dev] Re:
org.eclipse.wst.validation.validatorsupport for facets?
This is an interesting trend.
Is
it the case that every extension that's "sensitive" to project
natures should also be "sensitive" to project facets?
Kosta,
as the designer of facets, can you comment on your vision? Is it fair to ask
you to "survey" other uses of project natures and see if this
principle applies?
I
know we could simply address "one at a time" as the need arises, but
I'd prefer to have some idea of what the appropriate "big picture" is
supposed
to be. In particular, there should probably be some consistent rule on making
the associations (which applies, which order, are
associations
always "additive" or are there cases of "don't do"
something given a particular facet or project nature or combination)?
Thanks,
Lawrence Mandel <lmandel@xxxxxxxxxx>
Sent
by: wtp-dev-bounces@xxxxxxxxxxx
11/29/2005 12:30 PM
Please
respond to
"General discussion of project-wide or architectural issues."
|
|
To
|
"General discussion of project-wide or
architectural issues." <wtp-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
|
Re: [wtp-dev] Re:
org.eclipse.wst.validation.validator support for
facets?
|
|
This work should probably be done for the URI resolver as well. I've opened
enhancement 118451.
Lawrence Mandel
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=118451
Gary Johnston
<gjohnsto@xxxxxxxxxx>
Sent by: wtp-dev-bounces@xxxxxxxxxxx
11/29/2005 12:13 PM
Please
respond to
"General discussion of project-wide or architectural issues."
|
|
To
|
wtp-dev@xxxxxxxxxxx
|
cc
|
|
Subject
|
[wtp-dev] Re:
org.eclipse.wst.validation.validator support for facets?
|
|
Thanks, Vijay. Done: 118448 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=118448).
- Gary
Gary Johnston
Team Lead, Web Application Diagramming, Struts Tools, Web Application
Sketching
Rational Application/Web Developer
919 254-0027 (t/l 444)
|
IBM Rational Software
IBM Software Group
Research Triangle Park, NC
|
Date: Tue, 29 Nov 2005 11:54:02 -0500
From: Vijay Bhadriraju <vbhadrir@xxxxxxxxxx>
Subject: Re: [wtp-dev]
org.eclipse.wst.validation.validator support
for facets?
To: "General discussion of project-wide or
architectural issues."
<wtp-dev@xxxxxxxxxxx>
Message-ID:
<OF401EA58B.FF9F1B05-ON852570C8.005CD6DE@xxxxxxxxxx>
Content-Type: text/plain;
charset="us-ascii"
Gary,
You have mentioned a good point. The validation
framework needs to enable support for enabling validators based on facet types
in addtion to natures i.e either a nature can be defined or just a facet can be
defined to both can be defined in the org.eclipse.wst.validation.validator
extension point implmentation to enable validators on a project.
Please open feature request for WTP 1.5 release as
it cannot be contained in for WTP 1.0
Thanks
Regards, Vijay
____________________________
Vijay Bhadriraju
Rational Tools, J2EE Tooling
Ph: (919) 486-1898, T/L: 526-1898
Internet: vbhadrir@xxxxxxxxxx
Tuesday, November 29, 2005 11:46 AM
To: wtp-dev@xxxxxxxxxxx
cc:
From: Gary Johnston/Raleigh/IBM@IBMUS
Subject: [wtp-dev]
org.eclipse.wst.validation.validator support for facets?
Are there any plans for the subject ext. pt. to
support facets? Currently, I can specify a <projectNature
id="some nature id"/> such that my contributed validator is
invoked only if the project in question has the specified nature. But
some tooling that extends WTP stuff is moving to facets, rather than natures,
to indicate the presence of, say, some particular runtime support or
functionality in the target project. So it would be nice if this
extension point let me specify a facet, rather than a nature. As it is
now, the best I can do is to specify a projectNature
id="org.eclipse.wst.common.modulecore.ModuleCoreNature" (because the
nature that I used to use is going away and becoming a facet instead).
But that means that my plug-in gets activated, and my validator invoked,
on projects it doesn't care about.
- Gary
Gary Johnston
Team Lead, Web Application Diagramming, Struts
Tools, Web Application Sketching
Rational Application/Web Developer
IBM Rational Software
IBM Software Group
Research Triangle Park, NC_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev