use of org.eclipse.mylyn.wikitext.validation.MarkupValidator in project mylyn.docs by eclipse.
the class TextileReferenceValidationRuleTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
rule = new TextileReferenceValidationRule();
validator = new MarkupValidator();
validator.getRules().add(rule);
}
use of org.eclipse.mylyn.wikitext.validation.MarkupValidator in project mylyn.docs by eclipse.
the class BlockWhitespaceRuleTest method setUp.
@Override
public void setUp() {
rule = new BlockWhitespaceRule();
validator = new MarkupValidator();
validator.getRules().add(rule);
}
use of org.eclipse.mylyn.wikitext.validation.MarkupValidator in project mylyn.docs by eclipse.
the class LinkDefinitionValidationRuleTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
rule = new LinkDefinitionValidationRule();
validator = new MarkupValidator();
validator.getRules().add(rule);
}
use of org.eclipse.mylyn.wikitext.validation.MarkupValidator in project mylyn.docs by eclipse.
the class WikiTextExtensionPointReader method getMarkupValidator.
/**
* Get a markup validator by language name.
*
* @param name
* the name of the markup language for which a validator is desired
* @return the markup validator
* @see #getMarkupLanguageNames()
*/
public MarkupValidator getMarkupValidator(String name) {
MarkupValidator markupValidator = new MarkupValidator();
if (validationRulesByLanguageName == null) {
initializeValidationRules();
}
ValidationRules rules = validationRulesByLanguageName.get(name);
if (rules != null) {
markupValidator.getRules().addAll(rules.getRules());
}
return markupValidator;
}
use of org.eclipse.mylyn.wikitext.validation.MarkupValidator in project mylyn.docs by eclipse.
the class MarkdownReferenceValidationRuleTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
rule = new MarkdownReferenceValidationRule();
validator = new MarkupValidator();
validator.getRules().add(rule);
}
Aggregations