Getting content assistance and tips in the Jython editor

In the Jython editor, use content assists and content tips to speed up the creation of WebSphere® Administrative (wsadmin) objects, methods and parameters; and Jython syntax.

You can use content assists to help you finish a line of code in the Jython editor. The placement of the cursor in your script file provides the context for the content assist to offer a list of suggested completion.

You can use content tips to see a list of parameter hints in a method argument. If the cursor is located at the parameter specification for a method reference, this actions shows a floating window with parameter types information.

Restriction: In the floating window for the content assists, the Javadoc is available only for WebSphere Administrative (wsadmin) objects, methods and parameters. The content assists for Jython syntax displays only the keyword.
To use content assist and tips in the Jython editor:
  1. Open a Jython script file in the Jython editor:
    1. In Navigator view, expand the Jython project that contains the Jython script file you want to use content assists or tips.
    2. Right-click the Jython script file.
    3. In the pop-up menu, select Open With > Jython Editor.
  2. Place your cursor in a partially entered string of code in the Jython editor and start content assists in any of the following ways:
    • Press Ctrl+Space
    • Select Edit > Content Assist
  3. If the Jython editor finds valid candidates for this position, a list of possible completions is shown in a floating window. You can type further to narrow the list.
  4. Use the arrow keys or the mouse pointer to navigate through the possible completions.
  5. Select an item in the list to complete the code fragment by completing one of the following steps:
    • Selecting it and pressing Enter
    • Double clicking it
  6. Place your cursor in a parameter specification for a method reference and start the content tip in any of the following ways:
    • Press Ctrl+Shift+Space
    • Select Edit > Content Tip
  7. If the Jython editor finds valid candidates for this position, a list of parameter hints is shown in a floating window.
Related tasks
Editing Jython script files

Feedback