Java 类org.eclipse.xtext.validation.EValidatorRegistrar 实例源码

项目:xtext-core    文件:ValidatorTester.java   
@Inject
public ValidatorTester(T validator, EValidatorRegistrar registrar, @Named(Constants.LANGUAGE_NAME) final String languageName) {
    this.validator = validator;
    EValidator.Registry originalRegistry = registrar.getRegistry();
    EValidatorRegistryImpl newRegistry = new EValidatorRegistryImpl();
    registrar.setRegistry(newRegistry);
    this.validator.register(registrar);
    diagnostician = new Diagnostician(newRegistry) {
        @Override
        public java.util.Map<Object,Object> createDefaultContext() {
            java.util.Map<Object,Object> map = super.createDefaultContext();
            map.put(AbstractInjectableValidator.CURRENT_LANGUAGE_NAME, languageName);
            return map;
        }
    };
    registrar.setRegistry(originalRegistry);
    validatorCalled = false;
}
项目:xtext-extras    文件:UniqueClassNameValidator.java   
@Inject
protected void register(final EValidatorRegistrar registrar, final IGrammarAccess grammarAccess) {
  final AbstractRule entryRule = IterableExtensions.<AbstractRule>head(grammarAccess.getGrammar().getRules());
  if ((entryRule instanceof ParserRule)) {
    registrar.register(((ParserRule)entryRule).getType().getClassifier().getEPackage(), this);
  }
}
项目:n4js    文件:N4JSMemberRedefinitionValidator.java   
/**
 * NEEDED, when removed check methods will be called twice once by N4JSValidator, and once by
 * AbstractDeclarativeN4JSValidator
 */
@Override
public void register(EValidatorRegistrar registrar) {
    // nop
}
项目:xtext-extras    文件:EarlyExitValidator.java   
@Override
public void register(EValidatorRegistrar registrar) {
    // do nothing
}
项目:xtext-extras    文件:UniqueClassNameValidator.java   
@Override
public void register(final EValidatorRegistrar registrar) {
}
项目:xtext-core    文件:ValidatorTester.java   
public ValidatorTester(T validator, Injector injector) {
    this(validator,
        injector.getInstance(EValidatorRegistrar.class),
        injector.getInstance(Key.get(String.class, Names.named(Constants.LANGUAGE_NAME))));
}
项目:dsl-devkit    文件:ApiAccessChecks.java   
@Override
public void register(final EValidatorRegistrar registrar) {
  // do nothing
}
项目:dsl-devkit    文件:ClasspathBasedChecks.java   
@Override
public void register(final EValidatorRegistrar registrar) {
  // do nothing
}
项目:dsl-devkit    文件:FormalParameterCheckBase.java   
@Override
public void register(final EValidatorRegistrar registrar) {
  // do nothing
}
项目:statecharts    文件:SCTResourceValidator.java   
@Override
@Inject
public void register(EValidatorRegistrar registrar) {
    // Do not register because this validator is only a composite #398987
}
项目:statecharts    文件:SGraphJavaValidator.java   
@Inject
public void register(EValidatorRegistrar registrar) {
    // Do not register because this validator is only a composite #398987
}
项目:CooperateModelingEnvironment    文件:CooperateAutomatedValidator.java   
@Override
public void register(EValidatorRegistrar registrar) {
    return;
}
项目:CooperateModelingEnvironment    文件:CooperateAutomatedValidator.java   
@Inject
public void registerAgain(EValidatorRegistrar registrar) {
    super.register(registrar);
}
项目:jkind-xtext    文件:TypesAcyclicValidator.java   
@Override
public void register(EValidatorRegistrar registrar) {
    // Since this is a composed check we prevent it from registering on its
    // own
}
项目:jkind-xtext    文件:ConstantsAcyclicValidator.java   
@Override
public void register(EValidatorRegistrar registrar) {
    // Since this is a composed check we prevent it from registering on its
    // own
}
项目:jkind-xtext    文件:NodesAcyclicValidator.java   
@Override
public void register(EValidatorRegistrar registrar) {
    // Since this is a composed check we prevent it from registering on its
    // own
}
项目:jkind-xtext    文件:EquationsAcyclicValidator.java   
@Override
public void register(EValidatorRegistrar registrar) {
    // Since this is a composed check we prevent it from registering on its own
}
项目:n4js    文件:N4JSStatementValidator.java   
/**
 * NEEEDED
 *
 * when removed check methods will be called twice once by N4JSValidator, and once by
 * AbstractDeclarativeN4JSValidator
 */
@Override
public void register(EValidatorRegistrar registrar) {
    // nop
}
项目:n4js    文件:N4JSSyntaxValidator.java   
/**
 * NEEDED
 *
 * when removed check methods will be called twice once by N4JSValidator, and once by
 * AbstractDeclarativeN4JSValidator
 */
@Override
public void register(EValidatorRegistrar registrar) {
    // nop
}
项目:n4js    文件:N4JSEnumValidator.java   
/**
 * NEEEDED
 *
 * when removed check methods will be called twice once by N4JSValidator, and once by
 * AbstractDeclarativeN4JSValidator
 */
@Override
public void register(EValidatorRegistrar registrar) {
    /* nop */
}
项目:n4js    文件:N4JSLambdaValidator.java   
/**
 * NEEEDED
 *
 * when removed check methods will be called twice once by N4JSValidator, and once by
 * AbstractDeclarativeN4JSValidator
 */
@Override
public void register(EValidatorRegistrar registrar) {
    // nop
}
项目:n4js    文件:N4JSNameValidator.java   
/**
 * NEEEDED
 *
 * when removed check methods will be called twice once by N4JSValidator, and once by
 * AbstractDeclarativeN4JSValidator
 */
@Override
public void register(EValidatorRegistrar registrar) {
    // nop
}
项目:dsl-devkit    文件:DefaultCheckValidator.java   
/**
 * Override with empty implementation since indirectly referenced {@link #grammarAccess} has not been injected at this point. {@inheritDoc}
 */
@Override
public void register(final EValidatorRegistrar registrar) {}
项目:dsl-devkit    文件:DefaultCheckValidator.java   
/**
 * At this point, {@link #grammarAccess} has been injected. See {@link #register(EValidatorRegistrar)}.
 * 
 * @param registrar
 *          the validator registrar
 */
@Inject
public void register2(final EValidatorRegistrar registrar) {
  super.register(registrar);
}
项目:CooperateModelingEnvironment    文件:ICooperateAutomatedValidator.java   
void register(EValidatorRegistrar registrar);