Class TemplatesFormatter
- 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.right.templates.formatting.TemplatesFormatter
-
- All Implemented Interfaces:
org.eclipse.xtext.formatting.IFormatter
,org.eclipse.xtext.formatting.IFormatterExtension
public class TemplatesFormatter extends org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
This class contains custom formatting description. 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 TemplatesFormatter()
-
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)
protected void
formatBinaryOperation(org.eclipse.xtext.formatting.impl.FormattingConfig config)
FormatsBinaryExpression
protected void
formatExpression(org.eclipse.xtext.formatting.impl.FormattingConfig config)
Formats different expression in Right Templates grammar ruleprotected void
formatIfStatement(org.eclipse.xtext.formatting.impl.FormattingConfig config)
FormatsIfStatement
protected void
formatReadAllText(org.eclipse.xtext.formatting.impl.FormattingConfig config)
Formats ReadAllText grammar ruleprotected void
formatUnaryOperation(org.eclipse.xtext.formatting.impl.FormattingConfig config)
FormatsUnaryExpression
-
-
-
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
-
formatIfStatement
protected void formatIfStatement(org.eclipse.xtext.formatting.impl.FormattingConfig config)
FormatsIfStatement
- Parameters:
c
- specialFormattingConfig
for Right Templates grammar
-
formatReadAllText
protected void formatReadAllText(org.eclipse.xtext.formatting.impl.FormattingConfig config)
Formats ReadAllText grammar rule- Parameters:
c
- specialFormattingConfig
for Right Templates grammar
-
formatBinaryOperation
protected void formatBinaryOperation(org.eclipse.xtext.formatting.impl.FormattingConfig config)
FormatsBinaryExpression
- Parameters:
c
- specialFormattingConfig
for Right Templates grammar
-
formatUnaryOperation
protected void formatUnaryOperation(org.eclipse.xtext.formatting.impl.FormattingConfig config)
FormatsUnaryExpression
- Parameters:
c
- specialFormattingConfig
for Right Templates grammar
-
formatExpression
protected void formatExpression(org.eclipse.xtext.formatting.impl.FormattingConfig config)
Formats different expression in Right Templates grammar rule- Parameters:
c
- specialFormattingConfig
for Right Templates grammar
-
-