de.cau.cs.kieler.core.annotations.text.formatting
Class AnnotationsFormatter

java.lang.Object
  extended by org.eclipse.xtext.formatting.impl.AbstractFormatter
      extended by org.eclipse.xtext.formatting.impl.BaseFormatter
          extended by org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
              extended by de.cau.cs.kieler.core.annotations.text.formatting.AnnotationsFormatter
All Implemented Interfaces:
org.eclipse.xtext.formatting.IFormatter
Direct Known Subclasses:
KaomFormatter, KExpressionsFormatter

public class AnnotationsFormatter
extends org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter

This class contains custom formatting description.

Rating red

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter.ConfigStore
 
Field Summary
static String LANGUAGE_NAME
          Name of the annotations language.
 
Fields inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter
grammar
 
Constructor Summary
AnnotationsFormatter()
           
 
Method Summary
protected  void configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig c)
          The interface method called by the runtime, delegating to customConfigureFormatting(FormattingConfig, AnnotationsGrammarAccess) .
protected  void customConfigureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig c, AnnotationsGrammarAccess f)
          Method contains actual formatting instructions while GrammarAccess class maybe parameterized allowing the reuse within ExpressionsFormatter.
 
Methods inherited from class org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
createFormatterStream, createFormattingConfig, createMatcher, getConfig, getGrammarAccess, getHiddenTokenHelper, getIndentInfo, 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
 

Field Detail

LANGUAGE_NAME

public static final String LANGUAGE_NAME
Name of the annotations language. Need it to distinguish the formatting for parantheses in the annotations language and further languages like KExpressions. Injecting this value does not work, doing so reveals e.g. the name of the KITS language.

See Also:
Constant Field Values
Constructor Detail

AnnotationsFormatter

public AnnotationsFormatter()
Method Detail

configureFormatting

protected void configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig c)
The interface method called by the runtime, delegating to customConfigureFormatting(FormattingConfig, AnnotationsGrammarAccess) .

Specified by:
configureFormatting in class org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter
Parameters:
c - the provided FormattingConfig accepting the provided instructions.

customConfigureFormatting

protected void customConfigureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig c,
                                         AnnotationsGrammarAccess f)
Method contains actual formatting instructions while GrammarAccess class maybe parameterized allowing the reuse within ExpressionsFormatter.

Parameters:
c - FormattingConfig provided by caller
f - GrammarAccess provided by caller