Index: formatter/org/eclipse/jdt/core/formatter/CodeFormatter.java =================================================================== RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/formatter/org/eclipse/jdt/core/formatter/CodeFormatter.java,v retrieving revision 1.7 diff -u -r1.7 CodeFormatter.java --- formatter/org/eclipse/jdt/core/formatter/CodeFormatter.java 13 Jan 2004 15:48:45 -0000 1.7 +++ formatter/org/eclipse/jdt/core/formatter/CodeFormatter.java 7 Jun 2004 14:01:39 -0000 @@ -13,8 +13,7 @@ import org.eclipse.text.edits.TextEdit; /** - * Specification for a generic source code formatter. This is still subject to change. - * + * Specification for a generic source code formatter. * @since 3.0 */ public abstract class CodeFormatter { Index: formatter/org/eclipse/jdt/core/formatter/DefaultCodeFormatterConstants.java =================================================================== RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/formatter/org/eclipse/jdt/core/formatter/DefaultCodeFormatterConstants.java,v retrieving revision 1.39 diff -u -r1.39 DefaultCodeFormatterConstants.java --- formatter/org/eclipse/jdt/core/formatter/DefaultCodeFormatterConstants.java 29 Apr 2004 14:26:29 -0000 1.39 +++ formatter/org/eclipse/jdt/core/formatter/DefaultCodeFormatterConstants.java 7 Jun 2004 14:01:40 -0000 @@ -17,7 +17,7 @@ import org.eclipse.jdt.internal.formatter.align.Alignment; /** - * This is still subject to changes before 3.0. + * Constants used to set up the options of the code formatter. * @since 3.0 */ public class DefaultCodeFormatterConstants { Index: formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java =================================================================== RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java,v retrieving revision 1.41 diff -u -r1.41 DefaultCodeFormatter.java --- formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java 27 May 2004 14:41:39 -0000 1.41 +++ formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatter.java 7 Jun 2004 14:01:41 -0000 @@ -36,7 +36,7 @@ private CodeSnippetParsingUtil codeSnippetParsingUtil; public DefaultCodeFormatter() { - this(new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getDefaultSettings()), null); + this(new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getJavaConventionsSettings()), null); } public DefaultCodeFormatter(DefaultCodeFormatterOptions preferences) { @@ -49,7 +49,7 @@ this.preferences = new DefaultCodeFormatterOptions(options); } else { this.options = JavaCore.getOptions(); - this.preferences = new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getDefaultSettings()); + this.preferences = new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getJavaConventionsSettings()); } this.defaultCompilerOptions = getDefaultCompilerOptions(); if (defaultCodeFormatterOptions != null) { Index: formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java =================================================================== RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java,v retrieving revision 1.45 diff -u -r1.45 DefaultCodeFormatterOptions.java --- formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java 30 Apr 2004 19:43:23 -0000 1.45 +++ formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java 7 Jun 2004 14:01:42 -0000 @@ -1523,7 +1523,7 @@ this.blank_lines_after_imports = 1; this.blank_lines_after_package = 1; this.blank_lines_before_field = 1; - this.blank_lines_before_first_class_body_declaration = 1; + this.blank_lines_before_first_class_body_declaration = 0; this.blank_lines_before_imports = 1; this.blank_lines_before_member_type = 1; this.blank_lines_before_method = 1; @@ -1654,10 +1654,10 @@ this.insert_space_between_empty_parens_in_method_declaration = false; this.insert_space_between_empty_parens_in_method_invocation = false; this.compact_else_if = true; - this.keep_guardian_clause_on_one_line = true; + this.keep_guardian_clause_on_one_line = false; this.keep_else_statement_on_same_line = false; this.keep_empty_array_initializer_on_one_line = false; - this.keep_simple_if_on_one_line = true; + this.keep_simple_if_on_one_line = false; this.keep_then_statement_on_same_line = false; this.number_of_empty_lines_to_preserve = 1; this.put_empty_statement_on_new_line = true; Index: model/org/eclipse/jdt/core/JavaCore.java =================================================================== RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/JavaCore.java,v retrieving revision 1.412 diff -u -r1.412 JavaCore.java --- model/org/eclipse/jdt/core/JavaCore.java 27 May 2004 09:44:55 -0000 1.412 +++ model/org/eclipse/jdt/core/JavaCore.java 7 Jun 2004 14:01:44 -0000 @@ -2393,7 +2393,7 @@ optionNames.add(CORE_ENCODING); // Formatter settings - Map codeFormatterOptionsMap = DefaultCodeFormatterConstants.getDefaultSettings(); // code formatter defaults + Map codeFormatterOptionsMap = DefaultCodeFormatterConstants.getJavaConventionsSettings(); // code formatter defaults for (Iterator iter = codeFormatterOptionsMap.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); String optionName = (String) entry.getKey();