Package de.gebit.integrity.ui.formatting
Class DSLWhitespaceInformationProvider
java.lang.Object
org.eclipse.xtext.ui.editor.formatting.PreferenceStoreWhitespaceInformationProvider
de.gebit.integrity.ui.formatting.DSLWhitespaceInformationProvider
- All Implemented Interfaces:
org.eclipse.xtext.formatting.IWhitespaceInformationProvider
public class DSLWhitespaceInformationProvider
extends org.eclipse.xtext.ui.editor.formatting.PreferenceStoreWhitespaceInformationProvider
Custom whitespace information provider which implements a more sophisticated, automatic line break detection, in case
no line break information can be deduced from project/file settings. Only if that automatic detection fails, a
fallback to the system property is done.
Unfortunately, due to the superclass being not really ideal to extend in the manner I required, I had to copy/paste a lot more lines from it than I feel comfortable to :(.
Unfortunately, due to the superclass being not really ideal to extend in the manner I required, I had to copy/paste a lot more lines from it than I feel comfortable to :(.
- Author:
- Rene Schneider - initial API and implementation
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.xtext.formatting.IWhitespaceInformationProvider
org.eclipse.xtext.formatting.IWhitespaceInformationProvider.Default -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetLineSeparatorPreference(org.eclipse.emf.common.util.URI aUri) Methods inherited from class org.eclipse.xtext.ui.editor.formatting.PreferenceStoreWhitespaceInformationProvider
getIndentationInformation, getLineSeparatorInformation, getLineSeparatorPreference
-
Constructor Details
-
DSLWhitespaceInformationProvider
public DSLWhitespaceInformationProvider()
-
-
Method Details
-
getLineSeparatorPreference
- Overrides:
getLineSeparatorPreferencein classorg.eclipse.xtext.ui.editor.formatting.PreferenceStoreWhitespaceInformationProvider
-