Changeset 29 in default
- Timestamp:
- 11/02/10 16:46:43 (14 years ago)
- Location:
- trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/EbnfFormatterVisitor.java
r28 r29 263 263 private void newLine() { 264 264 buf.append("\n"); 265 if ((ruleSpacingStack != null) && (!ruleSpacingStack.empty())) { 266 newLineOffsetCounter = ruleSpacingStack.peek(); 267 } else { 268 newLineOffsetCounter = 0; 269 } 265 270 } 266 271 -
trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/FormatterConfig.java
r28 r29 4 4 private boolean newLineAfterAlternative = true; 5 5 private boolean preventNewLineAfterAlternativeOnLessThanThreeElements = true; 6 private boolean preventNewLineAfterAlternativeOnShortAlternatives = true; 6 7 7 8 public boolean isNewLineAfterAlternative() { … … 22 23 } 23 24 25 public boolean isPreventNewLineAfterAlternativeOnShortAlternatives() { 26 return preventNewLineAfterAlternativeOnShortAlternatives; 27 } 28 29 public void setPreventNewLineAfterAlternativeOnShortAlternatives( 30 boolean preventNewLineAfterAlternativeOnShortAlternatives) { 31 this.preventNewLineAfterAlternativeOnShortAlternatives = preventNewLineAfterAlternativeOnShortAlternatives; 32 } 33 24 34 }
Note: See TracChangeset
for help on using the changeset viewer.