de.cau.cs.kieler.kaom.text.formatting
Class KaomFormatter

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
                  extended by de.cau.cs.kieler.kaom.text.formatting.KaomFormatter
All Implemented Interfaces:
org.eclipse.xtext.formatting.IFormatter

public class KaomFormatter
extends AnnotationsFormatter

This class contains custom formatting description for textual KAOM specifications.

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
 
Fields inherited from class de.cau.cs.kieler.core.annotations.text.formatting.AnnotationsFormatter
LANGUAGE_NAME
 
Fields inherited from class org.eclipse.xtext.formatting.impl.BaseFormatter
grammar
 
Constructor Summary
KaomFormatter()
           
 
Method Summary
protected  void configureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig c)
          The interface method called by the runtime, delegating to AnnotationsFormatter.customConfigureFormatting(FormattingConfig, AnnotationsGrammarAccess) .
protected  void customConfigureFormatting(org.eclipse.xtext.formatting.impl.FormattingConfig c, KaomGrammarAccess f)
          Method contains actual formatting instructions while GrammarAccess class maybe parameterized allowing the reuse within other Formatters.
 
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
 

Constructor Detail

KaomFormatter

public KaomFormatter()
Method Detail

configureFormatting

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

Overrides:
configureFormatting in class AnnotationsFormatter
Parameters:
c - the provided FormattingConfig accepting the provided instructions.

customConfigureFormatting

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

Overrides:
customConfigureFormatting in class AnnotationsFormatter
Parameters:
c - FormattingConfig provided by caller
f - GrammarAccess provided by caller