Using JET editor

Using content/code assist

Using code assist is very similar to using it in the java editor.
Code assist is available inside JET scriptlets tags only.

  1. Place your cursor in a valid position on a scriptlet in an editor and Press Ctrl+Space
    If the JET 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. You can also hover over the selected list items to view its Javadoc information, if it is available.
  2. Use the arrow keys or the mouse pointer to navigate through the possible completions.
  3. Select an item in the list to complete the fragment by doing one of the following:

Code Completion

Locating errors

Errors in the JET scriplets are displayed as red markers in the editor.
You can see the description of these errors by slowly moving your cursor atop the marker.

Error Highlighting

Preview the results

you can preview the result of the code generation with your template.
You'll be required to provide a valid EMF based model input.

  1. Select the "Preview" tab of the JET editor.
  2. Browse the workspace for the EMF based input model file.
  3. Select an model item in the tree that is the expected output for the template, and click on apply

Preview