org.eclipse.xtext.xtend2.formatting
Class OrganizeImports

java.lang.Object
  extended by org.eclipse.xtext.xtend2.formatting.OrganizeImports

public class OrganizeImports
extends java.lang.Object

Author:
Sven Efftinge - Initial contribution and API

Nested Class Summary
static class OrganizeImports.ReferenceAcceptor
           
 
Constructor Summary
OrganizeImports()
           
 
Method Summary
 void collectAllReferences(XtextResource resource, OrganizeImports.ReferenceAcceptor acceptor)
           
 TextRegion computeRegion(XtextResource resource)
           
 java.lang.String getOrganizedImportSection(XtextResource state)
           
protected  XtendFile getXtendFile(XtextResource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrganizeImports

public OrganizeImports()
Method Detail

getOrganizedImportSection

public java.lang.String getOrganizedImportSection(XtextResource state)

computeRegion

public TextRegion computeRegion(XtextResource resource)

getXtendFile

protected XtendFile getXtendFile(XtextResource resource)

collectAllReferences

public void collectAllReferences(XtextResource resource,
                                 OrganizeImports.ReferenceAcceptor acceptor)