Set Editor Content

Note: This tool is only applicable to Eclipse text editors.

Function:

This tool replaces the content of the current editor page by the given string or file content. In addition, it enables you to set the editor cursor and/or selection. You can, for example, set the cursor to a specified position in the editor without changing the editor content.

Note: All input parameters are optional.

Parameters:

Parameter Name I/O Type Description
Editor Content [O] I File/String Editor content
Cursor Line [O] I String Line to which the cursor will be positioned.

The default value is 0.

Cursor Column [O] I String Column to which the cursor will be positioned.

The default value is 0.

Cursor Offset [O] I String Offset to which the cursor will be positioned.

The default value is 0.

Selection Length [O] I String Specifies the length of the text to select in the editor If the length is not specified, the cursor will be set to the selection offset value or to the cursor position.

The default value is 0.