public abstract static class DocumentSourceAppender.Factory<T extends DocumentSourceAppender>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DocumentSourceAppender.Factory.OptionalParameters |
Constructor and Description |
---|
DocumentSourceAppender.Factory() |
Modifier and Type | Method and Description |
---|---|
T |
create(IXtextDocument document,
XtextResource resource,
int offset,
int length) |
T |
create(IXtextDocument document,
XtextResource resource,
int offset,
int length,
DocumentSourceAppender.Factory.OptionalParameters params) |
int |
getIndentationLevelAtOffset(int offset,
org.eclipse.jface.text.IDocument document,
XtextResource resource) |
protected java.lang.String |
getIndentString(XtextResource resource) |
protected abstract T |
newInstance(IXtextDocument document,
RewritableImportSection rewritableImportSection,
WhitespaceHelper whitespaceHelper,
java.lang.String indentString,
java.lang.String lineSeparator,
int baseIndentationLevel,
boolean isJava) |
protected abstract T newInstance(IXtextDocument document, RewritableImportSection rewritableImportSection, WhitespaceHelper whitespaceHelper, java.lang.String indentString, java.lang.String lineSeparator, int baseIndentationLevel, boolean isJava)
public T create(IXtextDocument document, XtextResource resource, int offset, int length)
public T create(IXtextDocument document, XtextResource resource, int offset, int length, DocumentSourceAppender.Factory.OptionalParameters params)
protected java.lang.String getIndentString(XtextResource resource)
public int getIndentationLevelAtOffset(int offset, org.eclipse.jface.text.IDocument document, XtextResource resource)