source: default/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/FormatterConfig.java @ 30

Last change on this file since 30 was 30, checked in by zeiss, 14 years ago
  • Property svn:mime-type set to text/plain
File size: 1.6 KB
Line 
1package de.ugoe.cs.swe.bnftools.ui.formatter;
2
3public class FormatterConfig {
4        private boolean newLineAfterAlternative = true;
5        private boolean preventNewLineAfterAlternativeOnLessThanThreeElements = true;
6        private boolean preventNewLineAfterAlternativeOnShortAlternatives = true;
7        private double shortAlternativeThreshold = 3.0;
8
9        public boolean isNewLineAfterAlternative() {
10                return newLineAfterAlternative;
11        }
12
13        public void setNewLineAfterAlternative(boolean newLineAfterAlternative) {
14                this.newLineAfterAlternative = newLineAfterAlternative;
15        }
16
17        public boolean isPreventNewLineAfterAlternativeOnLessThanThreeElements() {
18                return preventNewLineAfterAlternativeOnLessThanThreeElements;
19        }
20
21        public void setPreventNewLineAfterAlternativeOnLessThanThreeElements(
22                        boolean preventNewLineAfterAlternativeOnLessThanThreeElements) {
23                this.preventNewLineAfterAlternativeOnLessThanThreeElements = preventNewLineAfterAlternativeOnLessThanThreeElements;
24        }
25
26        public boolean isPreventNewLineAfterAlternativeOnShortAlternatives() {
27                return preventNewLineAfterAlternativeOnShortAlternatives;
28        }
29
30        public void setPreventNewLineAfterAlternativeOnShortAlternatives(
31                        boolean preventNewLineAfterAlternativeOnShortAlternatives) {
32                this.preventNewLineAfterAlternativeOnShortAlternatives = preventNewLineAfterAlternativeOnShortAlternatives;
33        }
34
35        public double getShortAlternativeThreshold() {
36                return shortAlternativeThreshold;
37        }
38
39        public void setShortAlternativeThreshold(double shortAlternativeThreshold) {
40                this.shortAlternativeThreshold = shortAlternativeThreshold;
41        }
42
43}
Note: See TracBrowser for help on using the repository browser.