public abstract class AbstractFormatter extends java.lang.Object implements IBasicFormatter
Constructor and Description |
---|
AbstractFormatter() |
Modifier and Type | Method and Description |
---|---|
protected void |
_format(org.eclipse.emf.ecore.EObject expr,
FormattableDocument format) |
protected void |
_format(java.lang.Void expr,
FormattableDocument format) |
protected void |
format(org.eclipse.emf.ecore.EObject expr,
FormattableDocument format) |
java.util.List<TextReplacement> |
format(XtextResource res,
int offset,
int length,
FormattingPreferenceValues cfg) |
boolean |
isAllowIdentityEdits() |
boolean |
isConflictOccurred() |
boolean |
isDiagnoseConflicts() |
void |
setAllowIdentityEdits(boolean allowIdentityEdits) |
void |
setDiagnoseConflicts(boolean diagnoseConflicts) |
public java.util.List<TextReplacement> format(XtextResource res, int offset, int length, FormattingPreferenceValues cfg)
format
in interface IBasicFormatter
public boolean isConflictOccurred()
protected void _format(java.lang.Void expr, FormattableDocument format)
protected void _format(org.eclipse.emf.ecore.EObject expr, FormattableDocument format)
protected void format(org.eclipse.emf.ecore.EObject expr, FormattableDocument format)
@Pure public boolean isAllowIdentityEdits()
public void setAllowIdentityEdits(boolean allowIdentityEdits)
@Pure public boolean isDiagnoseConflicts()
public void setDiagnoseConflicts(boolean diagnoseConflicts)