public static final String OPTION_CompactAssignment = "net.sourceforge.phpeclipse.formatter.style.assignment"; //$NON-NLS-1$
+ public static final String OPTION_CompactStringConcatenation = "net.sourceforge.phpeclipse.formatter.style.compactStringConcatenation"; //$NON-NLS-1$
+
+ public static final String OPTION_CompactArrays = "net.sourceforge.phpeclipse.formatter.style.compactArrays"; //$NON-NLS-1$
+
public static final String OPTION_TabulationChar = "net.sourceforge.phpeclipse.formatter.tabulation.char"; //$NON-NLS-1$
public static final String OPTION_TabulationSize = "net.sourceforge.phpeclipse.formatter.tabulation.size"; //$NON-NLS-1$
public int maxLineLength = 80;
public boolean compactAssignmentMode = false;
+
+ public boolean compactStringConcatenation = false;
+ public boolean compactArrays = false;
+
// if isTrue, assignments look like x= 12 (not like x = 12);
public boolean compactDereferencingMode = true;
}
continue;
}
+ if (optionID.equals(OPTION_CompactArrays)) {
+ if (optionValue.equals(COMPACT)) {
+ this.compactArrays = true;
+ } else if (optionValue.equals(NORMAL)) {
+ this.compactArrays = false;
+ }
+ continue;
+ }
+ if (optionID.equals(OPTION_CompactStringConcatenation)) {
+ if (optionValue.equals(COMPACT)) {
+ this.compactStringConcatenation = true;
+ } else if (optionValue.equals(NORMAL)) {
+ this.compactStringConcatenation = false;
+ }
+ continue;
+ }
if (optionID.equals(OPTION_TabulationChar)) {
if (optionValue.equals(TAB)) {
this.indentWithTab = true;
*
* @return int
*/
- public int getMaxLineLength() {
- return maxLineLength;
- }
+// public int getMaxLineLength() {
+// return maxLineLength;
+// }
- public int getTabSize() {
- return tabSize;
- }
+// public int getTabSize() {
+// return tabSize;
+// }
- public boolean isAddingNewLineBeforeOpeningBrace() {
- return newLineBeforeOpeningBraceMode;
- }
+// public boolean isAddingNewLineBeforeOpeningBrace() {
+// return newLineBeforeOpeningBraceMode;
+// }
- public boolean isAddingNewLineInControlStatement() {
- return newlineInControlStatementMode;
- }
+// public boolean isAddingNewLineInControlStatement() {
+// return newlineInControlStatementMode;
+// }
- public boolean isAddingNewLineInEmptyBlock() {
- return newLineInEmptyBlockMode;
- }
+// public boolean isAddingNewLineInEmptyBlock() {
+// return newLineInEmptyBlockMode;
+// }
- public boolean isClearingAllBlankLines() {
- return clearAllBlankLinesMode;
- }
+// public boolean isClearingAllBlankLines() {
+// return clearAllBlankLinesMode;
+// }
- public boolean isCompactingAssignment() {
- return compactAssignmentMode;
- }
+// public boolean isCompactingAssignment() {
+// return compactAssignmentMode;
+// }
- public boolean isCompactingDereferencing() {
- return compactDereferencingMode;
- }
+// public boolean isCompactingDereferencing() {
+// return compactDereferencingMode;
+// }
// public boolean isCompactingElseIf() {
// return compactElseIfMode;
// }
- public boolean isUsingTabForIndenting() {
- return indentWithTab;
- }
+// public boolean isUsingTabForIndenting() {
+// return indentWithTab;
+// }
public void setLineSeparator(String lineSeparator) {
lineSeparatorSequence = lineSeparator.toCharArray();
/**
* @deprecated - should use a Map when creating the options.
*/
- public void setMaxLineLength(int maxLineLength) {
- this.maxLineLength = maxLineLength;
- }
+// public void setMaxLineLength(int maxLineLength) {
+// this.maxLineLength = maxLineLength;
+// }
/**
* @deprecated - should use a Map when creating the options.
*/