public interface IFormattingStrategy
formatterStarts
format
formatterStops
This interface must be implemented by clients. Implementers should be registered with a content formatter in order get involved in the formatting process.
Modifier and Type | Method and Description |
---|---|
String |
format(String content,
boolean isLineStart,
String indentation,
int[] positions)
Formats the given string.
|
void |
formatterStarts(String initialIndentation)
Informs the strategy about the start of a formatting process in which it will
participate.
|
void |
formatterStops()
Informs the strategy that the formatting process in which it has participated
has been finished.
|
void formatterStarts(String initialIndentation)
initialIndentation
- the indent string of the first line at which the
overall formatting process starts.String format(String content, boolean isLineStart, String indentation, int[] positions)
content
- the initial string to be formattedisLineStart
- indicates whether the beginning of content is a line start in its documentindentation
- the indentation string to be usedpositions
- the character positions to be updatedvoid formatterStops()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.