public class ContentFormatter extends 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(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(String contentType) |
IPreferenceValuesProvider |
getPreferencesProvider() |
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(List<ITextReplacement> replacements)
protected org.eclipse.text.edits.TextEdit exec(IXtextDocument document, org.eclipse.jface.text.IRegion region, XtextResource resource) throws Exception
Exceptionpublic void format(org.eclipse.jface.text.IDocument document,
org.eclipse.jface.text.IRegion region)
format in interface org.eclipse.jface.text.formatter.IContentFormatterpublic org.eclipse.jface.text.formatter.IFormattingStrategy getFormattingStrategy(String contentType)
getFormattingStrategy in interface org.eclipse.jface.text.formatter.IContentFormatterpublic IPreferenceValuesProvider getPreferencesProvider()
protected void initRequest(IXtextDocument document, org.eclipse.jface.text.IRegion region, XtextResource resource, FormatterRequest request)
public void setPreferencesProvider(IPreferenceValuesProvider cfgProvider)
Copyright © 2016. All Rights Reserved.