Search in sources :

Example 1 with ConfigurableValidationMessageAcceptor

use of net.vtst.eclipse.easyxtext.validation.config.ConfigurableValidationMessageAcceptor in project ow by vtst.

the class ValidatorPageHelper method resetValidatorCache.

private void resetValidatorCache() {
    ValidationMessageAcceptor messageAcceptor = getValidator().getMessageAcceptor();
    if (!(messageAcceptor instanceof ConfigurableValidationMessageAcceptor))
        return;
    ConfigurableValidationMessageAcceptor configurableMessageAcceptor = (ConfigurableValidationMessageAcceptor) messageAcceptor;
    configurableMessageAcceptor.resetCache(this.project);
}
Also used : ConfigurableValidationMessageAcceptor(net.vtst.eclipse.easyxtext.validation.config.ConfigurableValidationMessageAcceptor) ValidationMessageAcceptor(org.eclipse.xtext.validation.ValidationMessageAcceptor) ConfigurableValidationMessageAcceptor(net.vtst.eclipse.easyxtext.validation.config.ConfigurableValidationMessageAcceptor)

Aggregations

ConfigurableValidationMessageAcceptor (net.vtst.eclipse.easyxtext.validation.config.ConfigurableValidationMessageAcceptor)1 ValidationMessageAcceptor (org.eclipse.xtext.validation.ValidationMessageAcceptor)1