import net.sourceforge.phpdt.internal.core.JavaModelManager;
import net.sourceforge.phpdt.internal.core.Region;
import net.sourceforge.phpdt.internal.core.util.MementoTokenizer;
-import net.sourceforge.phpdt.internal.corext.Assert;
+//incastrix
+//import net.sourceforge.phpdt.internal.corext.Assert;
+import org.eclipse.core.runtime.Assert;
+
import net.sourceforge.phpeclipse.PHPeclipsePlugin;
import org.eclipse.core.resources.IFile;
*/
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.
if (target instanceof File) {
File externalFile = (File) target;
if (externalFile.isFile()) {
- String fileName = externalFile.getName().toLowerCase();
+ //String fileName = externalFile.getName().toLowerCase();
// if (fileName.endsWith(".jar" //$NON-NLS-1$
// ) || fileName.endsWith(".zip" //$NON-NLS-1$
// )) { // external binary archive
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);