|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An formatting strategy is assumed to be specialized on formatting text of a particular content type. Each formatting process calls the strategy's methods in the following sequence:
formatterStarts
format
formatterStops
Method Summary | |
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. |
Method Detail |
public void formatterStarts(String initialIndentation)
initialIndentation
- the indent string of the first line at which the
overall formatting process starts.public 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 updated
public void formatterStops()
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |