Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] Enablement expression support in validator ext point


The support for enablement _expression_ as shown below has been added to the validator extension point. The facet filters support added in the validator ext point in addition to natures  did not scale very well and additional requirements from some extended teams drove the need for the enablement support which scales very well.  This _expression_ support covers all the combinations that the FacetedProjectPropertyTester provides as this is the tester class that is used under the covers for property and value strings.

The ejb validator is changed to use this support instead of facet filters

<extension
         id="EJBValidator"
         name="%EJB_VALIDATOR"
         point="org.eclipse.wst.validation.validator">
      <validator>
         <enablement>
                 <and>
                        <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.java"/>
                          <test property="org.eclipse.wst.common.project.facet.core.projectFacet" value="jst.ejb"/>
                   </and>
           </enablement>
         <filter
               objectClass="org.eclipse.core.resources.IFile"
               nameFilter="ejb-jar.xml">
         </filter>
         <filter
               objectClass="org.eclipse.core.resources.IFile"
               nameFilter="*.class">
         </filter>
         <filter
               objectClass="org.eclipse.core.resources.IFile"
               nameFilter="*.java">
         </filter>
         <helper
               class="org.eclipse.jst.j2ee.internal.ejb.workbench.validation.EJBHelper">
         </helper>
         <dependentValidator
               depValValue="true">
         </dependentValidator>
         <markerId
               markerIdValue="EJBValidatorMarker">
         </markerId>
         <run
               class="org.eclipse.jst.j2ee.internal.ejb.workbench.validation.UIEjbValidator">
         </run>
      </validator>
   </extension>

The facet filters support still exists and works in the validator ext point even though it is redundant with this enablement support. The reason it is still supported is for the fact that we are not supposed to break any internal api also at this point for 1.5. Validators using facet filters will continue to work as is and the any validators that need the enablement _expression_ support can migrate.

Regards, Vijay
_____________________________
Vijay Bhadriraju
Rational Tools, J2EE Tooling
Ph: (919) 486-1898, T/L: 526-1898
Internet: vbhadrir@xxxxxxxxxx

_____________________________

Back to the top