Examples of DeepCloneGrammarAccess


Examples of my.home.dsl.services.DeepCloneGrammarAccess

*/
public class DeepCloneFormatter extends AbstractDeclarativeFormatter {

  @Override
  protected void configureFormatting(FormattingConfig c) {
    DeepCloneGrammarAccess f = (DeepCloneGrammarAccess) getGrammarAccess();

//    c.setIndentationIncrement().after(
//        f.getComplexFieldAccess().getLeftCurlyBracketKeyword_1());
   
    c.setIndentation(
        f.getComplexFieldAccess().getLeftCurlyBracketKeyword_1(),
        f.getComplexFieldAccess().getRightCurlyBracketKeyword_3()
      );

    c.setIndentation(
        f.getClassClonerAccess().getLeftCurlyBracketKeyword_2(),
        f.getClassClonerAccess().getRightCurlyBracketKeyword_4()
      );
   
    c.setNoSpace().after(f.getSimpleExcludedFieldAccess().getHyphenMinusKeyword_0());
    c.setNoSpace().after(f.getReferenceFieldAccess().getAmpersandKeyword_0());
   
    c.setLinewrap().after(f.getBodyRule());
    c.setLinewrap().after(f.getHeaderRule());
    c.setLinewrap().after(f.getPackageConfigRule());
    c.setLinewrap().after(f.getFieldClonerRule());
    c.setLinewrap().after(f.getClassClonerRule());
    c.setLinewrap().after(f.getComplexFieldAccess().getLeftCurlyBracketKeyword_1());
    c.setLinewrap().after(f.getClassClonerAccess().getLeftCurlyBracketKeyword_2());
   
    c.setLinewrap(0, 1, 2).before(f.getSL_COMMENTRule());
    c.setLinewrap(0, 1, 2).before(f.getML_COMMENTRule());
    c.setLinewrap(0, 1, 1).after(f.getML_COMMENTRule());
  }
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.