public interface TextEditor
For example, to open the default editor on a URL then jump to the fifth line of the file if the default editor is a text editor, you might use:
Editor editor = EditorUtil.openDefaultEditorInFrame( url );
if ( editor instanceof TextEditor )
{
((TextEditor)editor).gotoLine( 5, 1, true );
}
| Modifier and Type | Method and Description |
|---|---|
boolean |
gotoLine(int line,
int column,
boolean highlightLine)
Moves the current cursor position to indicated location,
and optionally highlight the line.
|
boolean gotoLine(int line,
int column,
boolean highlightLine)
line - the line to go to (one-based)column - the column to go to (one-based)highlightLine - whether to highlight the specified line