Class ExpressionsFormatter
- java.lang.Object
-
- org.eclipse.xtext.formatting.impl.AbstractFormatter
-
- org.eclipse.xtext.formatting.impl.BaseFormatter
-
- org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
-
- com._1c.g5.v8.dt.dcs.expressions.formatting.ExpressionsFormatter
-
- All Implemented Interfaces:
org.eclipse.xtext.formatting.IFormatter
,org.eclipse.xtext.formatting.IFormatterExtension
public class ExpressionsFormatter extends org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
This class contains custom formatting description for DCS expressions. see : http://www.eclipse.org/Xtext/documentation.html#formatting on how and when to use it Also seeorg.eclipse.xtext.xtext.XtextFormattingTokenSerializer
as an example
-
-
Constructor Summary
Constructors Constructor Description ExpressionsFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig config)
org.eclipse.xtext.parsetree.reconstr.ITokenStream
createFormatterStream(String indent, org.eclipse.xtext.parsetree.reconstr.ITokenStream out, boolean preserveWhitespaces)
org.eclipse.xtext.parsetree.reconstr.ITokenStream
createFormatterStream(org.eclipse.emf.ecore.EObject context, String indent, org.eclipse.xtext.parsetree.reconstr.ITokenStream out, boolean preserveWhitespaces)
-
-
-
Method Detail
-
createFormatterStream
public org.eclipse.xtext.parsetree.reconstr.ITokenStream createFormatterStream(String indent, org.eclipse.xtext.parsetree.reconstr.ITokenStream out, boolean preserveWhitespaces)
- Specified by:
createFormatterStream
in interfaceorg.eclipse.xtext.formatting.IFormatter
- Overrides:
createFormatterStream
in classorg.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
-
createFormatterStream
public org.eclipse.xtext.parsetree.reconstr.ITokenStream createFormatterStream(org.eclipse.emf.ecore.EObject context, String indent, org.eclipse.xtext.parsetree.reconstr.ITokenStream out, boolean preserveWhitespaces)
- Specified by:
createFormatterStream
in interfaceorg.eclipse.xtext.formatting.IFormatterExtension
- Overrides:
createFormatterStream
in classorg.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
-
configureFormatting
protected void configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig config)
- Specified by:
configureFormatting
in classorg.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
-
-