Search in sources :

Example 6 with MarkupLanguageConfiguration

use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.

the class BugzillaTextileLanguageTest method initParser.

private void initParser() throws IOException {
    parser = new MarkupParser();
    TextileLanguage markupLanguage = new TextileLanguage();
    MarkupLanguageConfiguration configuration = Util.create("bugzilla");
    markupLanguage.configure(configuration);
    parser.setMarkupLanguage(markupLanguage);
}
Also used : MarkupLanguageConfiguration(org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration) MarkupParser(org.eclipse.mylyn.wikitext.parser.MarkupParser)

Example 7 with MarkupLanguageConfiguration

use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.

the class MarkupLanguageConfigurationTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    configuration = new MarkupLanguageConfiguration();
}
Also used : MarkupLanguageConfiguration(org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration)

Example 8 with MarkupLanguageConfiguration

use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.

the class MarkupLanguageConfigurationTest method testCloneWithLocale.

public void testCloneWithLocale() {
    configuration.setLocale(Locale.ENGLISH);
    MarkupLanguageConfiguration copy = configuration.clone();
    assertEquals(configuration.getLocale(), copy.getLocale());
}
Also used : MarkupLanguageConfiguration(org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration)

Example 9 with MarkupLanguageConfiguration

use of org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration in project mylyn.docs by eclipse.

the class ConfigurationBuilderTest method testRepositorySettings.

public void testRepositorySettings() {
    MarkupLanguageConfiguration configuration = ConfigurationBuilder.create().repositorySettings().configuration();
    assertFalse(configuration.isEnableUnwrappedParagraphs());
    assertTrue(configuration.isEscapingHtmlAndXml());
    assertTrue(configuration.isNewlinesMustCauseLineBreak());
    assertTrue(configuration.isOptimizeForRepositoryUsage());
    assertHasInstance(configuration.getBlocks(), EclipseErrorDetailsBlock.class);
    assertHasInstance(configuration.getBlocks(), JavaStackTraceBlock.class);
}
Also used : MarkupLanguageConfiguration(org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration)

Aggregations

MarkupLanguageConfiguration (org.eclipse.mylyn.wikitext.parser.markup.MarkupLanguageConfiguration)9 MarkupParser (org.eclipse.mylyn.wikitext.parser.MarkupParser)3 Test (org.junit.Test)2 AsciiDocMarkupLanguageConfiguration (org.eclipse.mylyn.wikitext.asciidoc.AsciiDocMarkupLanguageConfiguration)1 AbstractMarkupGenerationTest (org.eclipse.mylyn.wikitext.toolkit.AbstractMarkupGenerationTest)1