Examples of XdocGrammarAccess


Examples of org.eclipse.xtext.xdoc.services.XdocGrammarAccess

*/
public class XdocFormatter extends AbstractDeclarativeFormatter {
 
  @Override
  protected void configureFormatting(FormattingConfig c) {
    XdocGrammarAccess grammarAccess = (XdocGrammarAccess) getGrammarAccess();
    c.setAutoLinewrap(120);
   
    c.setLinewrap(2, 2, 3).between(grammarAccess.getTextOrMarkupRule(), grammarAccess.getTextOrMarkupRule());
   
    c.setNoSpace().around(grammarAccess.getWSRule());
    c.setNoSpace().around(grammarAccess.getANY_WSRule());
    c.setNoSpace().around(grammarAccess.getMULTI_NLRule());
   
    configureChapter(c, grammarAccess);
    configureSection(c, grammarAccess);
    configureSection2(c, grammarAccess);
    configureSection3(c, grammarAccess);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.