org.eclipse.emf.ecore.xcore.formatting
Class XcoreFormatter
java.lang.Object
org.eclipse.xtext.formatting.impl.AbstractFormatter
org.eclipse.xtext.formatting.impl.BaseFormatter
org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
org.eclipse.xtext.xbase.formatting.XbaseFormatter
org.eclipse.emf.ecore.xcore.formatting.XcoreFormatter
- All Implemented Interfaces:
- org.eclipse.xtext.formatting.IFormatter, org.eclipse.xtext.formatting.IFormatterExtension
public class XcoreFormatter
- extends org.eclipse.xtext.xbase.formatting.XbaseFormatter
This class contains custom formatting description.
see : http://www.eclipse.org/Xtext/documentation/latest/xtext.html#formatting
on how and when to use it
Also see org.eclipse.xtext.xtext.XtextFormattingTokenSerializer
as an example
Nested classes/interfaces inherited from class org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter |
org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter.ConfigStore |
Fields inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter |
grammar |
Method Summary |
protected void |
configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig config)
|
void |
configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess grammarAccess)
|
void |
configureQualifiedNameWithWildcard(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.QualifiedNameWithWildcardElements elements)
|
void |
configureValidID(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.ValidIDElements elements)
|
void |
configureXAnnotation(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XAnnotationElements elements)
|
void |
configureXAnnotationDirective(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XAnnotationDirectiveElements elements)
|
void |
configureXAttribute(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XAttributeElements elements)
|
void |
configureXBlockExpression(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XBlockExpressionElements elements)
|
void |
configureXClass(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XClassElements elements)
|
void |
configureXClassifier(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XClassifierElements elements)
|
void |
configureXDataType(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XDataTypeElements elements)
|
void |
configureXEnum(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XEnumElements elements)
|
void |
configureXEnumLiteral(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XEnumLiteralElements elements)
|
void |
configureXGenericType(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XGenericTypeElements elements)
|
void |
configureXGenericTypeArgument(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XGenericTypeArgumentElements elements)
|
void |
configureXGenericWildcardTypeArgument(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XGenericWildcardTypeArgumentElements elements)
|
void |
configureXID(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XIDElements elements)
|
void |
configureXImportDirective(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XImportDirectiveElements elements)
|
void |
configureXMember(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XMemberElements elements)
|
void |
configureXMultiplicity(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XMultiplicityElements elements)
|
void |
configureXOperation(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XOperationElements elements)
|
void |
configureXPackage(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XPackageElements elements)
|
void |
configureXParameter(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XParameterElements elements)
|
void |
configureXQualifiedName(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XQualifiedNameElements elements)
|
void |
configureXReference(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XReferenceElements elements)
|
void |
configureXStringToStringMapEntry(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XStringToStringMapEntryElements elements)
|
void |
configureXTypeParameter(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XTypeParameterElements elements)
|
Methods inherited from class org.eclipse.xtext.xbase.formatting.XbaseFormatter |
configure, configure, configureXBlockExpression, configureXCasePart, configureXCatchClause, configureXClosure, configureXConstructorCall, configureXDoWhileExpression, configureXFeatureCall, configureXForLoopExpression, configureXIfExpression, configureXMemberFeatureCall, configureXParenthesizedExpression, configureXShortClosure, configureXSwitchExpression, configureXTryCatchFinallyExpression, configureXTypeLiteral, configureXUnaryOperation, configureXWhileExpression |
Methods inherited from class org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter |
createFormatterStream, createFormatterStream, createFormattingConfig, createMatcher, getConfig, getGrammarAccess, getHiddenTokenHelper, getIndentInfo, getLineSeparatorInfo, getMatcherProvider, saveDebugGraphvizDiagram, setGrammarAccess |
Methods inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter |
getWSRule |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XcoreFormatter
public XcoreFormatter()
configureFormatting
protected void configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig config)
- Overrides:
configureFormatting
in class org.eclipse.xtext.xbase.formatting.XbaseFormatter
configureFormatting
public void configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess grammarAccess)
configureXPackage
public void configureXPackage(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XPackageElements elements)
configureXAnnotation
public void configureXAnnotation(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XAnnotationElements elements)
configureXStringToStringMapEntry
public void configureXStringToStringMapEntry(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XStringToStringMapEntryElements elements)
configureXImportDirective
public void configureXImportDirective(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XImportDirectiveElements elements)
configureQualifiedNameWithWildcard
public void configureQualifiedNameWithWildcard(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.QualifiedNameWithWildcardElements elements)
configureXAnnotationDirective
public void configureXAnnotationDirective(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XAnnotationDirectiveElements elements)
configureXClassifier
public void configureXClassifier(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XClassifierElements elements)
configureXDataType
public void configureXDataType(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XDataTypeElements elements)
configureXEnum
public void configureXEnum(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XEnumElements elements)
configureXEnumLiteral
public void configureXEnumLiteral(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XEnumLiteralElements elements)
configureXClass
public void configureXClass(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XClassElements elements)
configureXMember
public void configureXMember(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XMemberElements elements)
configureXAttribute
public void configureXAttribute(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XAttributeElements elements)
configureXReference
public void configureXReference(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XReferenceElements elements)
configureXOperation
public void configureXOperation(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XOperationElements elements)
configureXParameter
public void configureXParameter(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XParameterElements elements)
configureXTypeParameter
public void configureXTypeParameter(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XTypeParameterElements elements)
configureXMultiplicity
public void configureXMultiplicity(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XMultiplicityElements elements)
configureXBlockExpression
public void configureXBlockExpression(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XBlockExpressionElements elements)
configureXGenericType
public void configureXGenericType(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XGenericTypeElements elements)
configureXGenericTypeArgument
public void configureXGenericTypeArgument(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XGenericTypeArgumentElements elements)
configureXGenericWildcardTypeArgument
public void configureXGenericWildcardTypeArgument(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XGenericWildcardTypeArgumentElements elements)
configureXQualifiedName
public void configureXQualifiedName(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XQualifiedNameElements elements)
configureXID
public void configureXID(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.XIDElements elements)
configureValidID
public void configureValidID(org.eclipse.xtext.formatting.impl.FormattingConfig config,
XcoreGrammarAccess.ValidIDElements elements)