<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT listener EMPTY>
<!ATTLIST listener
class CDATA #REQUIRED>
A listener for activities in this group.
<!ATTLIST group
id IDREF #REQUIRED>
Declares a validator group. A group may have multiple listeners.
<extension point="org.eclipse.wst.validation.validatorGroup"> <group id="validatorGroup"> <listener class="org.eclipse.wst.validation.example.ValidatorGroupListener"/> </group> </extension> public class org.eclipse.wst.validation.example.ValidatorGroupListener implements IValidatorGroupListener { public ValidatorGroupListener() { } public void validationFinishing(IResource resource, IProgressMonitor monitor, ValType valType, ValOperation operation) { System.out.println("Finishing:" + resource.getFullPath()); } public void validationStarting(IResource resource, IProgressMonitor monitor, ValType valType, ValOperation operation) { System.out.println("Starting:" + resource.getFullPath()); } } <extension id="id" name="name" point="org.eclipse.wst.validation.validatorV2"> <validator class="org.eclipse.wst.validation.example.Validator"> <group id="org.eclipse.wst.validation.example.validatorGroup"/> </validator> </extension>
Copyright (c) 2008 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which accompanies
this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html