Changeset 29 in default for trunk


Ignore:
Timestamp:
11/02/10 16:46:43 (14 years ago)
Author:
zeiss
Message:
 
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  
    263263        private void newLine() { 
    264264                buf.append("\n"); 
     265                if ((ruleSpacingStack != null) && (!ruleSpacingStack.empty())) { 
     266                        newLineOffsetCounter = ruleSpacingStack.peek(); 
     267                } else { 
     268                        newLineOffsetCounter = 0; 
     269                } 
    265270        } 
    266271         
  • trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/FormatterConfig.java

    r28 r29  
    44        private boolean newLineAfterAlternative = true; 
    55        private boolean preventNewLineAfterAlternativeOnLessThanThreeElements = true; 
     6        private boolean preventNewLineAfterAlternativeOnShortAlternatives = true; 
    67 
    78        public boolean isNewLineAfterAlternative() { 
     
    2223        } 
    2324 
     25        public boolean isPreventNewLineAfterAlternativeOnShortAlternatives() { 
     26                return preventNewLineAfterAlternativeOnShortAlternatives; 
     27        } 
     28 
     29        public void setPreventNewLineAfterAlternativeOnShortAlternatives( 
     30                        boolean preventNewLineAfterAlternativeOnShortAlternatives) { 
     31                this.preventNewLineAfterAlternativeOnShortAlternatives = preventNewLineAfterAlternativeOnShortAlternatives; 
     32        } 
     33 
    2434} 
Note: See TracChangeset for help on using the changeset viewer.