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

Last change on this file since 33 was 33, checked in by zeiss, 14 years ago
  • Property svn:mime-type set to text/plain
File size: 2.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 = 4.0;
8        private boolean alignParentheses = true;
9        private int alignParenthesesElementCountThreshold = 3;
10        private boolean wrapAfterThreshold = true;
11        private int wrapThreshold = 70;
12
13        public boolean isNewLineAfterAlternative() {
14                return newLineAfterAlternative;
15        }
16
17        public void setNewLineAfterAlternative(boolean newLineAfterAlternative) {
18                this.newLineAfterAlternative = newLineAfterAlternative;
19        }
20
21        public boolean isPreventNewLineAfterAlternativeOnLessThanThreeElements() {
22                return preventNewLineAfterAlternativeOnLessThanThreeElements;
23        }
24
25        public void setPreventNewLineAfterAlternativeOnLessThanThreeElements(
26                        boolean preventNewLineAfterAlternativeOnLessThanThreeElements) {
27                this.preventNewLineAfterAlternativeOnLessThanThreeElements = preventNewLineAfterAlternativeOnLessThanThreeElements;
28        }
29
30        public boolean isPreventNewLineAfterAlternativeOnShortAlternatives() {
31                return preventNewLineAfterAlternativeOnShortAlternatives;
32        }
33
34        public void setPreventNewLineAfterAlternativeOnShortAlternatives(
35                        boolean preventNewLineAfterAlternativeOnShortAlternatives) {
36                this.preventNewLineAfterAlternativeOnShortAlternatives = preventNewLineAfterAlternativeOnShortAlternatives;
37        }
38
39        public double getShortAlternativeThreshold() {
40                return shortAlternativeThreshold;
41        }
42
43        public void setShortAlternativeThreshold(double shortAlternativeThreshold) {
44                this.shortAlternativeThreshold = shortAlternativeThreshold;
45        }
46
47        public boolean isAlignParentheses() {
48                return alignParentheses;
49        }
50
51        public void setAlignParentheses(boolean alignParentheses) {
52                this.alignParentheses = alignParentheses;
53        }
54
55        public int getAlignParenthesesElementCountThreshold() {
56                return alignParenthesesElementCountThreshold;
57        }
58
59        public void setAlignParenthesesElementCountThreshold(
60                        int alignParenthesesElementCountThreshold) {
61                this.alignParenthesesElementCountThreshold = alignParenthesesElementCountThreshold;
62        }
63
64        public boolean isWrapAfterThreshold() {
65                return wrapAfterThreshold;
66        }
67
68        public void setWrapAfterThreshold(boolean wrapAfterThreshold) {
69                this.wrapAfterThreshold = wrapAfterThreshold;
70        }
71
72        public int getWrapThreshold() {
73                return wrapThreshold;
74        }
75
76        public void setWrapThreshold(int wrapThreshold) {
77                this.wrapThreshold = wrapThreshold;
78        }
79
80}
Note: See TracBrowser for help on using the repository browser.