public class ContentFormatter
extends java.lang.Object
implements org.eclipse.jface.text.formatter.IContentFormatter
Modifier and Type | Class and Description |
---|---|
class |
ContentFormatter.FormattingUnitOfWork |
Constructor and Description |
---|
ContentFormatter() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.text.edits.TextEdit |
createTextEdit(java.util.List<ITextReplacement> replacements) |
protected org.eclipse.text.edits.TextEdit |
exec(IXtextDocument document,
org.eclipse.jface.text.IRegion region,
XtextResource resource) |
void |
format(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.IRegion region) |
org.eclipse.jface.text.formatter.IFormattingStrategy |
getFormattingStrategy(java.lang.String contentType) |
IPreferenceValuesProvider |
getPreferencesProvider() |
protected IAcceptor<java.lang.Exception> |
getProblemHandler() |
protected void |
initRequest(IXtextDocument document,
org.eclipse.jface.text.IRegion region,
XtextResource resource,
FormatterRequest request) |
void |
setPreferencesProvider(IPreferenceValuesProvider cfgProvider) |
protected org.eclipse.text.edits.TextEdit createTextEdit(java.util.List<ITextReplacement> replacements)
protected org.eclipse.text.edits.TextEdit exec(IXtextDocument document, org.eclipse.jface.text.IRegion region, XtextResource resource) throws java.lang.Exception
java.lang.Exception
public void format(org.eclipse.jface.text.IDocument document, org.eclipse.jface.text.IRegion region)
format
in interface org.eclipse.jface.text.formatter.IContentFormatter
public org.eclipse.jface.text.formatter.IFormattingStrategy getFormattingStrategy(java.lang.String contentType)
getFormattingStrategy
in interface org.eclipse.jface.text.formatter.IContentFormatter
public IPreferenceValuesProvider getPreferencesProvider()
protected IAcceptor<java.lang.Exception> getProblemHandler()
protected void initRequest(IXtextDocument document, org.eclipse.jface.text.IRegion region, XtextResource resource, FormatterRequest request)
public void setPreferencesProvider(IPreferenceValuesProvider cfgProvider)