Search in sources :

Example 1 with MarkupValidator

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);
}
Also used : TextileReferenceValidationRule(org.eclipse.mylyn.wikitext.textile.internal.validation.TextileReferenceValidationRule) MarkupValidator(org.eclipse.mylyn.wikitext.validation.MarkupValidator)

Example 2 with MarkupValidator

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);
}
Also used : BlockWhitespaceRule(org.eclipse.mylyn.wikitext.textile.internal.validation.BlockWhitespaceRule) MarkupValidator(org.eclipse.mylyn.wikitext.validation.MarkupValidator)

Example 3 with MarkupValidator

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);
}
Also used : LinkDefinitionValidationRule(org.eclipse.mylyn.wikitext.markdown.internal.validation.LinkDefinitionValidationRule) MarkupValidator(org.eclipse.mylyn.wikitext.validation.MarkupValidator)

Example 4 with MarkupValidator

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;
}
Also used : ValidationRules(org.eclipse.mylyn.wikitext.validation.ValidationRules) MarkupValidator(org.eclipse.mylyn.wikitext.validation.MarkupValidator)

Example 5 with 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);
}
Also used : MarkdownReferenceValidationRule(org.eclipse.mylyn.wikitext.markdown.internal.validation.MarkdownReferenceValidationRule) MarkupValidator(org.eclipse.mylyn.wikitext.validation.MarkupValidator)

Aggregations

MarkupValidator (org.eclipse.mylyn.wikitext.validation.MarkupValidator)5 LinkDefinitionValidationRule (org.eclipse.mylyn.wikitext.markdown.internal.validation.LinkDefinitionValidationRule)1 MarkdownReferenceValidationRule (org.eclipse.mylyn.wikitext.markdown.internal.validation.MarkdownReferenceValidationRule)1 BlockWhitespaceRule (org.eclipse.mylyn.wikitext.textile.internal.validation.BlockWhitespaceRule)1 TextileReferenceValidationRule (org.eclipse.mylyn.wikitext.textile.internal.validation.TextileReferenceValidationRule)1 ValidationRules (org.eclipse.mylyn.wikitext.validation.ValidationRules)1