Class ProblemFormatter
java.lang.Object
org.eclipse.xtext.formatting2.AbstractFormatter2
org.eclipse.xtext.formatting2.AbstractJavaFormatter
tools.refinery.language.formatting2.ProblemFormatter
- All Implemented Interfaces:
 org.eclipse.xtext.formatting2.IFormatter2
public class ProblemFormatter
extends org.eclipse.xtext.formatting2.AbstractJavaFormatter
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.xtext.formatting2.AbstractJavaFormatter
org.eclipse.xtext.formatting2.AbstractJavaFormatter.EObjectErrorHandler - 
Field Summary
FieldsFields inherited from class org.eclipse.xtext.formatting2.AbstractFormatter2
textRegionExtensions - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.xtext.formatting2.regionaccess.ISequentialRegion region, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init) voidprotected voidformat(AnnotationArgument annotationArgument, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformat(AnnotationContainer annotationContainer, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformat(Annotation annotation, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformat(ArithmeticUnaryExpr unaryExpr, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidprotected voidprotected voidformat(ClassDeclaration classDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformat(Conjunction conjunction, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformat(EnumDeclaration enumDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformat(FunctionDefinition functionDefinition, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformat(Multiplicity multiplicity, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformat(NegationExpr literal, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformat(NodeDeclaration nodeDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidprotected voidformat(PredicateDefinition predicateDefinition, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidprotected voidprotected voidformat(ReferenceDeclaration referenceDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformat(TopLevelAnnotation topLevelAnnotation, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformatList(org.eclipse.xtext.formatting2.regionaccess.ISemanticRegionsFinder region, String separator, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidformatParenthesizedList(org.eclipse.xtext.formatting2.regionaccess.ISemanticRegionsFinder region, org.eclipse.xtext.formatting2.IFormattableDocument doc) protected voidprependNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.xtext.formatting2.regionaccess.ISequentialRegion region, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init) protected voidsingleNewLine(org.eclipse.xtext.formatting2.IHiddenRegionFormatter it) protected voidsurroundNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init) protected voidtwoNewLines(org.eclipse.xtext.formatting2.IHiddenRegionFormatter it) Methods inherited from class org.eclipse.xtext.formatting2.AbstractJavaFormatter
allRegionsFor, allSemanticRegions, autowrap, createPolymorhicDispatcher, formatUsingPolymorphicDispatcher, grammarElement, highPriority, immediatelyFollowing, immediatelyPreceding, indent, isMultiline, lowPriority, newLine, nextHiddenRegion, noAutowrap, noIndentation, noSpace, oneSpace, previousHiddenRegion, regionFor, regionForEObject, semanticRegionsMethods inherited from class org.eclipse.xtext.formatting2.AbstractFormatter2
_format, _format, _format, _format, createCommentReplacer, createFormattableRootDocument, createFormattableSubDocument, createHiddenRegionFormatter, createHiddenRegionFormatter, createHiddenRegionFormatting, createHiddenRegionFormattingMerger, createHiddenRegionReplacer, createTextReplacerContext, createTextReplacerMerger, createWhitespaceReplacer, format, getPreference, getPreferences, getRequest, getTextRegionAccess, handleTraceMissing, initalize, initialize, isInRequestedRange, postProcess, reset, shouldFormat 
- 
Field Details
- 
MAX_LENGTH
public static final int MAX_LENGTH- See Also:
 
 - 
TAB_SIZE
public static final int TAB_SIZE- See Also:
 
 
 - 
 - 
Constructor Details
- 
ProblemFormatter
public ProblemFormatter() 
 - 
 - 
Method Details
- 
format
- Overrides:
 formatin classorg.eclipse.xtext.formatting2.AbstractJavaFormatter
 - 
format
 - 
format
 - 
format
protected void format(ClassDeclaration classDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
protected void format(ReferenceDeclaration referenceDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
protected void format(Multiplicity multiplicity, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
protected void format(EnumDeclaration enumDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
protected void format(PredicateDefinition predicateDefinition, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
 - 
format
protected void format(Conjunction conjunction, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
protected void format(FunctionDefinition functionDefinition, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
 - 
format
 - 
format
protected void format(NodeDeclaration nodeDeclaration, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
protected void format(TopLevelAnnotation topLevelAnnotation, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
protected void format(Annotation annotation, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
protected void format(AnnotationArgument annotationArgument, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
protected void format(AnnotationContainer annotationContainer, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
format
 - 
format
protected void format(ArithmeticUnaryExpr unaryExpr, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
formatParenthesizedList
protected void formatParenthesizedList(org.eclipse.xtext.formatting2.regionaccess.ISemanticRegionsFinder region, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
formatList
protected void formatList(org.eclipse.xtext.formatting2.regionaccess.ISemanticRegionsFinder region, String separator, org.eclipse.xtext.formatting2.IFormattableDocument doc)  - 
singleNewLine
protected void singleNewLine(org.eclipse.xtext.formatting2.IHiddenRegionFormatter it)  - 
twoNewLines
protected void twoNewLines(org.eclipse.xtext.formatting2.IHiddenRegionFormatter it)  - 
surroundNewLines
protected void surroundNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init)  - 
prependNewLines
protected void prependNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.xtext.formatting2.regionaccess.ISequentialRegion region, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init)  - 
appendNewLines
protected void appendNewLines(org.eclipse.xtext.formatting2.IFormattableDocument doc, org.eclipse.xtext.formatting2.regionaccess.ISequentialRegion region, org.eclipse.xtext.xbase.lib.Procedures.Procedure1<? super org.eclipse.xtext.formatting2.IHiddenRegionFormatter> init)  
 -