Changeset 11 in default for trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/formatting
- Timestamp:
- 10/22/10 14:53:37 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/formatting/EbnfFormatter.java
r5 r11 19 19 @Override 20 20 protected void configureFormatting(FormattingConfig c) { 21 de.ugoe.cs.swe.bnftools.services.EbnfGrammarAccess f = (de.ugoe.cs.swe.bnftools.services.EbnfGrammarAccess) getGrammarAccess();22 23 c.setIndentationSpace(" ");24 c.setNoLinewrap();25 c.setAutoLinewrap(10000000);26 c.setLinewrap(2).before(f.getSectionHeadingRule());27 c.setLinewrap(2).after(f.getSectionHeadingRule());28 29 30 c.setNoSpace().after(f.getRuleAccess().getRulenumberINTTerminalRuleCall_0_0_0());31 c.setNoSpace().after(f.getRuleAccess().getRulevariantIDTerminalRuleCall_0_1_0());32 33 c.setLinewrap().before(f.getRuleAccess().getRulenumberINTTerminalRuleCall_0_0_0());34 c.setNoSpace().before(f.getRuleAccess().getSemicolonKeyword_4());35 // c.setNoSpace().before(f.getRuleAccess().getNameIDTerminalRuleCall_1_0());36 37 // c.setLinewrap().after(f.getRuleAccess().getDefinitionListDefinitionListParserRuleCall_3_0());38 c.setLinewrap().after(f.getRuleAccess().getDefinitionListAssignment_3());39 40 c.setLinewrap(2).before(f.getSL_COMMENTRule());41 c.setNoLinewrap().after(f.getSL_COMMENTRule());42 c.setLinewrap(2).before(f.getML_COMMENTRule());21 // de.ugoe.cs.swe.bnftools.services.EbnfGrammarAccess f = (de.ugoe.cs.swe.bnftools.services.EbnfGrammarAccess) getGrammarAccess(); 22 // 23 // c.setIndentationSpace(" "); 24 // c.setNoLinewrap(); 25 // c.setAutoLinewrap(10000000); 26 // c.setLinewrap(2).before(f.getSectionHeadingRule()); 27 // c.setLinewrap(2).after(f.getSectionHeadingRule()); 28 // 29 // 30 // c.setNoSpace().after(f.getRuleAccess().getRulenumberINTTerminalRuleCall_0_0_0()); 31 // c.setNoSpace().after(f.getRuleAccess().getRulevariantIDTerminalRuleCall_0_1_0()); 32 // 33 // c.setLinewrap().before(f.getRuleAccess().getRulenumberINTTerminalRuleCall_0_0_0()); 34 // c.setNoSpace().before(f.getRuleAccess().getSemicolonKeyword_4()); 35 //// c.setNoSpace().before(f.getRuleAccess().getNameIDTerminalRuleCall_1_0()); 36 // 37 //// c.setLinewrap().after(f.getRuleAccess().getDefinitionListDefinitionListParserRuleCall_3_0()); 38 // c.setLinewrap().after(f.getRuleAccess().getDefinitionListAssignment_3()); 39 // 40 // c.setLinewrap(2).before(f.getSL_COMMENTRule()); 41 // c.setNoLinewrap().after(f.getSL_COMMENTRule()); 42 // c.setLinewrap(2).before(f.getML_COMMENTRule()); 43 43 } 44 44
Note: See TracChangeset
for help on using the changeset viewer.