org.eclipse.xtext.ui.editor.model.edit
Class ReconcilingUnitOfWork<T>

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.model.edit.ReconcilingUnitOfWork<T>
All Implemented Interfaces:
IUnitOfWork<T,XtextResource>

public class ReconcilingUnitOfWork<T>
extends java.lang.Object
implements IUnitOfWork<T,XtextResource>

Author:
Knut Wannheden - Initial contribution and API, Jan Koehnlein

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.util.concurrent.IUnitOfWork
IUnitOfWork.Void<T>
 
Constructor Summary
ReconcilingUnitOfWork(IUnitOfWork<T,XtextResource> work, IXtextDocument document, ITextEditComposer composer)
           
 
Method Summary
 T exec(XtextResource state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconcilingUnitOfWork

public ReconcilingUnitOfWork(IUnitOfWork<T,XtextResource> work,
                             IXtextDocument document,
                             ITextEditComposer composer)
Method Detail

exec

public T exec(XtextResource state)
       throws java.lang.Exception
Specified by:
exec in interface IUnitOfWork<T,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