blob: 240b0bda82011012e8b2ed7059f482e38ed23e19 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005 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
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.xsd.ui.internal.validation;
import org.eclipse.wst.validation.internal.provisional.ValidationFactory;
import org.eclipse.wst.validation.internal.provisional.core.IValidator;
import org.eclipse.wst.xml.ui.internal.validation.DelegatingSourceValidator;
/**
* This performs the as-you-type validation
* @author Mark Hutchinson
*
*/
public class DelegatingSourceValidatorForXSD extends DelegatingSourceValidator
{
final private static String VALIDATOR_CLASS = "org.eclipse.wst.xsd.ui.internal.validation.Validator";
public DelegatingSourceValidatorForXSD()
{ super();
}
protected IValidator getDelegateValidator()
{
try
{ return ValidationFactory.instance.getValidator(VALIDATOR_CLASS);
}
catch (Exception e)
{ //
}
return null;
}
}