|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.languagetool.gui.Tools
public class Tools
GUI-related tools.
| Method Summary | |
|---|---|
static String |
getContext(int fromPos,
int toPos,
String text)
Deprecated. use ContextTools |
static String |
getContext(int fromPos,
int toPos,
String fileContents,
int contextSize)
Deprecated. use ContextTools |
static String |
getContext(int fromPos,
int toPos,
String fileContents,
int contextSize,
String markerStart,
String markerEnd)
Deprecated. use ContextTools |
static String |
getContext(int fromPos,
int toPos,
String text,
int contextSize,
String markerStart,
String markerEnd,
boolean escapeHTML)
Deprecated. use ContextTools |
static String |
makeTexti18n(ResourceBundle messages,
String key,
Object... messageArguments)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String makeTexti18n(ResourceBundle messages,
String key,
Object... messageArguments)
public static String getContext(int fromPos,
int toPos,
String text)
ContextTools
public static String getContext(int fromPos,
int toPos,
String fileContents,
int contextSize)
ContextTools
contextSize characters) of the given text
range, highlighting the range with HTML code.
public static String getContext(int fromPos,
int toPos,
String fileContents,
int contextSize,
String markerStart,
String markerEnd)
ContextTools
contextSize characters) of the given text
range, highlighting the range with the given marker strings, not escaping
HTML.
public static String getContext(int fromPos,
int toPos,
String text,
int contextSize,
String markerStart,
String markerEnd,
boolean escapeHTML)
ContextTools
contextSize characters) of the given text
range, highlighting the range with the given marker strings.
fromPos - the start position of the error in characterstoPos - the end position of the error in characterstext - the text from which the context should be takencontextSize - the size of the context in charactersmarkerStart - the string used to mark the beginning of the errormarkerEnd - the string used to mark the end of the errorescapeHTML - whether HTML/XML characters should be escaped
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||