public class ContentFormatter.FormattingUnitOfWork extends java.lang.Object implements IUnitOfWork<org.eclipse.text.edits.TextEdit,XtextResource>
IUnitOfWork.Void<T>
Constructor and Description |
---|
ContentFormatter.FormattingUnitOfWork(IXtextDocument document,
org.eclipse.jface.text.IRegion region) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.text.edits.TextEdit |
exec(XtextResource state) |
public ContentFormatter.FormattingUnitOfWork(IXtextDocument document, org.eclipse.jface.text.IRegion region)
public org.eclipse.text.edits.TextEdit exec(XtextResource state) throws java.lang.Exception
exec
in interface IUnitOfWork<org.eclipse.text.edits.TextEdit,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