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;