protected class XtextDocument.XtextDocumentLocker extends AbstractReadWriteAcces<XtextResource> implements IXtextDocumentContentObserver.Processor
readLock, rwLock, writeLock
Modifier | Constructor and Description |
---|---|
protected |
XtextDocument.XtextDocumentLocker() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterModify(XtextResource res,
java.lang.Object result,
IUnitOfWork<?,XtextResource> work)
is executed within the transaction right after the unit of work has been executed and delivered the result.
|
protected void |
afterReadOnly(XtextResource res,
java.lang.Object result,
IUnitOfWork<?,XtextResource> work)
is executed within the transaction right after the unit of work has been executed and delivered the result.
|
protected void |
beforeModify(XtextResource state,
IUnitOfWork<?,XtextResource> work)
Is called before a write lock is obtained
|
protected void |
beforeReadOnly(XtextResource res,
IUnitOfWork<?,XtextResource> work)
is called before a read lock is obtained
|
protected XtextResource |
getState() |
<T> T |
modify(IUnitOfWork<T,XtextResource> work) |
<T> T |
readOnly(IUnitOfWork<T,XtextResource> work) |
getReadHoldCount, getWriteHoldCount, process
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
protected XtextResource getState()
getState
in class AbstractReadWriteAcces<XtextResource>
protected void beforeReadOnly(XtextResource res, IUnitOfWork<?,XtextResource> work)
AbstractReadWriteAcces
beforeReadOnly
in class AbstractReadWriteAcces<XtextResource>
work
- - the unit of work to be processedprotected void beforeModify(XtextResource state, IUnitOfWork<?,XtextResource> work)
AbstractReadWriteAcces
beforeModify
in class AbstractReadWriteAcces<XtextResource>
work
- - the unit of work to be processedprotected void afterReadOnly(XtextResource res, java.lang.Object result, IUnitOfWork<?,XtextResource> work)
AbstractReadWriteAcces
afterReadOnly
in class AbstractReadWriteAcces<XtextResource>
protected void afterModify(XtextResource res, java.lang.Object result, IUnitOfWork<?,XtextResource> work)
AbstractReadWriteAcces
afterModify
in class AbstractReadWriteAcces<XtextResource>
public <T> T modify(IUnitOfWork<T,XtextResource> work)
modify
in class AbstractReadWriteAcces<XtextResource>
public <T> T readOnly(IUnitOfWork<T,XtextResource> work)
readOnly
in interface IReadAccess<XtextResource>
readOnly
in class AbstractReadWriteAcces<XtextResource>