org.openxma.dsl.common.formatter
Class OpenXMAFormattingConfig

java.lang.Object
  extended by org.openxma.dsl.common.formatter.OpenXMAFormattingConfig

public class OpenXMAFormattingConfig
extends java.lang.Object


Field Summary
protected  LocatorTree endIndentionLocators
           
protected  LocatorTree lineWrapLocators
           
protected  LocatorTree noSpaceLocators
           
protected  LocatorTree startIndentionLocators
           
 
Constructor Summary
OpenXMAFormattingConfig()
           
 
Method Summary
 boolean allowSpace(org.eclipse.xtext.parsetree.AbstractNode node, org.eclipse.emf.ecore.EObject elementOfLeftNode, org.eclipse.emf.ecore.EObject elementOfRightNode)
           
 SimpleLocator endIndentation()
           
 java.lang.String getIndention(int count)
           
 void setIndentation(org.eclipse.emf.ecore.EObject element)
          Configure that the given element is intended.
 void setIndentation(org.eclipse.emf.ecore.EObject startIndention, org.eclipse.emf.ecore.EObject endIndention)
          Configure that there is a indentation started before the first given element and that it ends before the second given element.
 void setIndentationSpace(java.lang.String space)
           
 SimpleLocator setLinewrap(int lines)
           
 ComplexLocator setNoSpace()
           
 SimpleLocator startIndentation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noSpaceLocators

protected LocatorTree noSpaceLocators

startIndentionLocators

protected LocatorTree startIndentionLocators

endIndentionLocators

protected LocatorTree endIndentionLocators

lineWrapLocators

protected LocatorTree lineWrapLocators
Constructor Detail

OpenXMAFormattingConfig

public OpenXMAFormattingConfig()
Method Detail

setLinewrap

public SimpleLocator setLinewrap(int lines)

setIndentationSpace

public void setIndentationSpace(java.lang.String space)

setIndentation

public void setIndentation(org.eclipse.emf.ecore.EObject startIndention,
                           org.eclipse.emf.ecore.EObject endIndention)
Configure that there is a indentation started before the first given element and that it ends before the second given element.

Parameters:
startIndention -
endIndention -

setIndentation

public void setIndentation(org.eclipse.emf.ecore.EObject element)
Configure that the given element is intended. This means the indentation starts before this element and ends after this element.

Parameters:
element -

startIndentation

public SimpleLocator startIndentation()

endIndentation

public SimpleLocator endIndentation()

getIndention

public java.lang.String getIndention(int count)

allowSpace

public boolean allowSpace(org.eclipse.xtext.parsetree.AbstractNode node,
                          org.eclipse.emf.ecore.EObject elementOfLeftNode,
                          org.eclipse.emf.ecore.EObject elementOfRightNode)

setNoSpace

public ComplexLocator setNoSpace()


Copyright © 2012. All Rights Reserved.