org.eclipse.xtext.ui.editor.formatting
Class ContentFormatterFactory.FormattingUnitOfWork

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.formatting.ContentFormatterFactory.FormattingUnitOfWork
All Implemented Interfaces:
IUnitOfWork<ReplaceRegion,XtextResource>
Enclosing class:
ContentFormatterFactory

public class ContentFormatterFactory.FormattingUnitOfWork
extends java.lang.Object
implements IUnitOfWork<ReplaceRegion,XtextResource>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.util.concurrent.IUnitOfWork
IUnitOfWork.Void<T>
 
Field Summary
protected  org.eclipse.jface.text.IRegion region
           
 
Constructor Summary
ContentFormatterFactory.FormattingUnitOfWork(org.eclipse.jface.text.IRegion region)
           
 
Method Summary
 ReplaceRegion exec(XtextResource state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

region

protected final org.eclipse.jface.text.IRegion region
Constructor Detail

ContentFormatterFactory.FormattingUnitOfWork

public ContentFormatterFactory.FormattingUnitOfWork(org.eclipse.jface.text.IRegion region)
Method Detail

exec

public ReplaceRegion exec(XtextResource state)
                   throws java.lang.Exception
Specified by:
exec in interface IUnitOfWork<ReplaceRegion,XtextResource>
Parameters:
state - - The state, which is synchronized while this method is executed Do not return any references to something contained in this resource
Returns:
Throws:
java.lang.Exception