Adding two small options for code formatter (zhil's patch). These features are being...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / core / JavaCore.java
index 47e6e39..7e8a366 100644 (file)
@@ -117,6 +117,23 @@ public class JavaCore {
         */
        public static final String FORMATTER_COMPACT_ASSIGNMENT = PLUGIN_ID
                        + ".formatter.style.assignment"; //$NON-NLS-1$
+       
+       /**
+        * Possible configurable option ID.
+        * 
+        * @see #getDefaultOptions
+        * @since 2.0
+        */
+       public static final String FORMATTER_COMPACT_STRING_CONCATENATION = PLUGIN_ID
+                       + ".formatter.style.compactStringConcatenation"; //$NON-NLS-1$
+       /**
+        * Possible configurable option ID.
+        * 
+        * @see #getDefaultOptions
+        * @since 2.0
+        */
+       public static final String FORMATTER_COMPACT_ARRAYS = PLUGIN_ID
+                       + ".formatter.style.compactArrays"; //$NON-NLS-1$       
 
        /**
         * Possible configurable option ID.
@@ -3090,6 +3107,12 @@ public class JavaCore {
 
                preferences.setDefault(FORMATTER_COMPACT_ASSIGNMENT, NORMAL);
                optionNames.add(FORMATTER_COMPACT_ASSIGNMENT);
+               
+               preferences.setDefault(FORMATTER_COMPACT_ARRAYS, NORMAL);
+               optionNames.add(FORMATTER_COMPACT_ARRAYS);
+               
+               preferences.setDefault(FORMATTER_COMPACT_STRING_CONCATENATION, NORMAL);
+               optionNames.add(FORMATTER_COMPACT_STRING_CONCATENATION);
 
                preferences.setDefault(FORMATTER_TAB_CHAR, TAB);
                optionNames.add(FORMATTER_TAB_CHAR);