public interface IFormatter2
Use this interface to invoke a formatter.
An Xtext language should have an implementation for this interface bound in its runtime module.
The package org.eclipse.xtext.formatting2 for an introduction to formatting
,
The base class {@code AbstractFormatter2} to implement your own formatter.
,
The class {@code FormatterRequest} to specify what and how sould be formatted.
,
to apply replacements to a CharSequence or String.
Modifier and Type | Method and Description |
---|---|
java.util.List<ITextReplacement> |
format(FormatterRequest request)
Execute the formatter.
|
java.util.List<ITextReplacement> format(FormatterRequest request)