public class ReconcilingUnitOfWork<T> extends java.lang.Object implements IUnitOfWork<T,XtextResource>
ReconcilingUnitOfWork
is not
directly causing model listeners to be notified.
Modify the model (semantically) and the document (textually) within the
same ReconcilingUnitOfWork
will roll back the changes and throw
an exception.Modifier and Type | Class and Description |
---|---|
protected static class |
ReconcilingUnitOfWork.DocumentChangeListener |
static class |
ReconcilingUnitOfWork.ReconcilingUnitOfWorkProvider
Provides a ReconcilingUnitOfWork
|
IUnitOfWork.Void<T>
Constructor and Description |
---|
ReconcilingUnitOfWork(IUnitOfWork<T,XtextResource> work,
IXtextDocument document,
ITextEditComposer composer) |
Modifier and Type | Method and Description |
---|---|
T |
exec(XtextResource state) |
public ReconcilingUnitOfWork(IUnitOfWork<T,XtextResource> work, IXtextDocument document, ITextEditComposer composer)
public T exec(XtextResource state) throws java.lang.Exception
exec
in interface IUnitOfWork<T,XtextResource>
state
- - The state, which is synchronized while this method is executed
Do not return any references to something contained in this resourcejava.lang.Exception