Class NormalizedLineSeparatorInformation

java.lang.Object
tools.refinery.language.formatting2.NormalizedLineSeparatorInformation
All Implemented Interfaces:
org.eclipse.xtext.formatting.ILineSeparatorInformation

public class NormalizedLineSeparatorInformation extends Object implements org.eclipse.xtext.formatting.ILineSeparatorInformation
Make sure we use a single \n as a line separator on all platforms.

On the frontend, CodeMirror normalizes line separators, so a discrepancy would lead to incorrect highlight and error marker offsets between the server and client.

This also ensures the CLI uses normalized line endings on all platforms.

  • Constructor Details

    • NormalizedLineSeparatorInformation

      public NormalizedLineSeparatorInformation()
  • Method Details

    • getLineSeparator

      public String getLineSeparator()
      Specified by:
      getLineSeparator in interface org.eclipse.xtext.formatting.ILineSeparatorInformation