org.eclipse.xtext.util.concurrent
Interface IUnitOfWork<R,P>

All Known Implementing Classes:
CompletionProposalComputer, ContentFormatterFactory.FormattingUnitOfWork, ContextInformationComputer, IUnitOfWork.Void, ReconcilingUnitOfWork

public interface IUnitOfWork<R,P>

A unit of work acts as a transaction block, which can be passed to an IXtextDocument in order to get read or write access to it's parsed models.

Author:
Sven Efftinge - Initial contribution and API

Nested Class Summary
static class IUnitOfWork.Void<T>
          convenience class for side-effect only units
 
Method Summary
 R exec(P state)
           
 

Method Detail

exec

R exec(P state)
       throws java.lang.Exception
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