blob: 5b16decb0c90d3b25c0fbddd4eb766e8a1187538 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2004 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.xml.ui.reconcile;
import org.eclipse.wst.validation.core.IValidator;
import org.eclipse.wst.validation.plugin.ValidationPlugin;
/**
* @author Mark Hutchinson
*
*/
public class DelegatingSourceValidatorForXML extends DelegatingSourceValidator
{
private final static String VALIDATOR_CLASS = "org.eclipse.wst.xml.validation.internal.ui.eclipse.Validator";
public DelegatingSourceValidatorForXML()
{ super();
}
protected IValidator getDelegateValidator()
{
try
{
ValidationPlugin validationPlugin = new ValidationPlugin();
return validationPlugin.getValidator(VALIDATOR_CLASS);
}
catch (Exception e)
{ //
}
return null;
}
}