|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectTools
public class Tools
GUI-related tools.
| Field Summary | |
|---|---|
static String |
WINDOW_ICON_FILE
|
| Method Summary | |
|---|---|
static String |
getContext(int fromPos,
int toPos,
String text)
Get the default context (40 characters) of the given text range, highlighting the range with HTML. |
static String |
getContext(int fromPos,
int toPos,
String fileContents,
int contextSize)
Get the context ( contextSize characters) of the given text range,
highlighting the range with HTML code. |
static String |
getContext(int fromPos,
int toPos,
String fileContents,
int contextSize,
String markerStart,
String markerEnd)
Get the context ( contextSize characters) of the given text range,
highlighting the range with the given marker strings, not escaping HTML. |
static String |
getContext(int fromPos,
int toPos,
String text,
int contextSize,
String markerStart,
String markerEnd,
boolean escapeHTML)
Get the context ( contextSize characters) of the given text range,
highlighting the range with the given marker strings. |
static String |
makeTexti18n(ResourceBundle messages,
String key,
Object[] messageArguments)
|
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WINDOW_ICON_FILE
| Method Detail |
|---|
public static String makeTexti18n(ResourceBundle messages,
String key,
Object[] messageArguments)
public static String getContext(int fromPos,
int toPos,
String text)
public static String getContext(int fromPos,
int toPos,
String fileContents,
int contextSize)
contextSize characters) of the given text range,
highlighting the range with HTML code.
public static final String getContext(int fromPos,
int toPos,
String fileContents,
int contextSize,
String markerStart,
String markerEnd)
contextSize characters) of the given text range,
highlighting the range with the given marker strings, not escaping HTML.
public static final String getContext(int fromPos,
int toPos,
String text,
int contextSize,
String markerStart,
String markerEnd,
boolean escapeHTML)
contextSize characters) of the given text range,
highlighting the range with the given marker strings.
fromPos - the start position of the error in charactersendPos - 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 | |||||||||