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

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