00001 /* 00002 * generated by Xtext 00003 */ 00004 package org.best.of.robotics.formatting; 00005 00006 import org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter; 00007 import org.eclipse.xtext.formatting.impl.FormattingConfig; 00008 00017 public class SmachDSLFormatter extends AbstractDeclarativeFormatter { 00018 00019 @Override 00020 protected void configureFormatting(FormattingConfig c) { 00021 // It's usually a good idea to activate the following three statements. 00022 // They will add and preserve newlines around comments 00023 // c.setLinewrap(0, 1, 2).before(getGrammarAccess().getSL_COMMENTRule()); 00024 // c.setLinewrap(0, 1, 2).before(getGrammarAccess().getML_COMMENTRule()); 00025 // c.setLinewrap(0, 1, 1).after(getGrammarAccess().getML_COMMENTRule()); 00026 } 00027 }