List of usage examples for org.eclipse.jdt.internal.compiler.util Util LINE_SEPARATOR
String LINE_SEPARATOR
To view the source code for org.eclipse.jdt.internal.compiler.util Util LINE_SEPARATOR.
Click Source Link
From source file:com.bsiag.eclipse.jdt.java.formatter.DefaultCodeFormatter.java
License:Open Source License
private void updateWorkingOptions(int indentationLevel, String lineSeparator, int kind) { this.workingOptions.line_separator = lineSeparator != null ? lineSeparator : this.originalOptions.line_separator; if (this.workingOptions.line_separator == null) this.workingOptions.line_separator = Util.LINE_SEPARATOR; this.workingOptions.initial_indentation_level = indentationLevel; this.workingOptions.comment_format_javadoc_comment = this.originalOptions.comment_format_javadoc_comment && canFormatComment(kind, K_JAVA_DOC); this.workingOptions.comment_format_block_comment = this.originalOptions.comment_format_block_comment && canFormatComment(kind, K_MULTI_LINE_COMMENT); this.workingOptions.comment_format_line_comment = this.originalOptions.comment_format_line_comment && canFormatComment(kind, K_SINGLE_LINE_COMMENT); }