[9] | 1 | package de.ugoe.cs.swe.bnftools.ui.formatter;
|
---|
| 2 |
|
---|
| 3 | public class FormatterConfig {
|
---|
| 4 | private boolean useSpaces = true; // false=tabs, true=whitespaces
|
---|
| 5 | private int lineWrap = 80; // line in which the output should be wrapped
|
---|
| 6 | private boolean emptyLineBetweenRules = false;
|
---|
| 7 | private boolean emptyLineAfterMultiLineRule = false;
|
---|
| 8 | private boolean emptyLineBeforeSection = true;
|
---|
| 9 | private boolean emptyLineAfterSection = true;
|
---|
| 10 |
|
---|
| 11 | public boolean isUseSpaces() {
|
---|
| 12 | return useSpaces;
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | public void setUseSpaces(boolean useSpaces) {
|
---|
| 16 | this.useSpaces = useSpaces;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public int getLineWrap() {
|
---|
| 20 | return lineWrap;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | public void setLineWrap(int lineWrap) {
|
---|
| 24 | this.lineWrap = lineWrap;
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | public boolean isEmptyLineBetweenRules() {
|
---|
| 28 | return emptyLineBetweenRules;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | public void setEmptyLineBetweenRules(boolean emptyLineBetweenRules) {
|
---|
| 32 | this.emptyLineBetweenRules = emptyLineBetweenRules;
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | public boolean isEmptyLineAfterMultiLineRule() {
|
---|
| 36 | return emptyLineAfterMultiLineRule;
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | public void setEmptyLineAfterMultiLineRule(
|
---|
| 40 | boolean emptyLineAfterMultiLineRule) {
|
---|
| 41 | this.emptyLineAfterMultiLineRule = emptyLineAfterMultiLineRule;
|
---|
| 42 | }
|
---|
| 43 |
|
---|
| 44 | public boolean isEmptyLineBeforeSection() {
|
---|
| 45 | return emptyLineBeforeSection;
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | public void setEmptyLineBeforeSection(boolean emptyLineBeforeSection) {
|
---|
| 49 | this.emptyLineBeforeSection = emptyLineBeforeSection;
|
---|
| 50 | }
|
---|
| 51 |
|
---|
| 52 | public boolean isEmptyLineAfterSection() {
|
---|
| 53 | return emptyLineAfterSection;
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | public void setEmptyLineAfterSection(boolean emptyLineAfterSection) {
|
---|
| 57 | this.emptyLineAfterSection = emptyLineAfterSection;
|
---|
| 58 | }
|
---|
| 59 |
|
---|
| 60 | }
|
---|