Lines 36-42
Link Here
|
36 |
private CodeSnippetParsingUtil codeSnippetParsingUtil; |
36 |
private CodeSnippetParsingUtil codeSnippetParsingUtil; |
37 |
|
37 |
|
38 |
public DefaultCodeFormatter() { |
38 |
public DefaultCodeFormatter() { |
39 |
this(new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getDefaultSettings()), null); |
39 |
this(new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getJavaConventionsSettings()), null); |
40 |
} |
40 |
} |
41 |
|
41 |
|
42 |
public DefaultCodeFormatter(DefaultCodeFormatterOptions preferences) { |
42 |
public DefaultCodeFormatter(DefaultCodeFormatterOptions preferences) { |
Lines 49-55
Link Here
|
49 |
this.preferences = new DefaultCodeFormatterOptions(options); |
49 |
this.preferences = new DefaultCodeFormatterOptions(options); |
50 |
} else { |
50 |
} else { |
51 |
this.options = JavaCore.getOptions(); |
51 |
this.options = JavaCore.getOptions(); |
52 |
this.preferences = new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getDefaultSettings()); |
52 |
this.preferences = new DefaultCodeFormatterOptions(DefaultCodeFormatterConstants.getJavaConventionsSettings()); |
53 |
} |
53 |
} |
54 |
this.defaultCompilerOptions = getDefaultCompilerOptions(); |
54 |
this.defaultCompilerOptions = getDefaultCompilerOptions(); |
55 |
if (defaultCodeFormatterOptions != null) { |
55 |
if (defaultCodeFormatterOptions != null) { |