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.
-
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.
-
Use the arrow keys or the mouse pointer to navigate through the possible completions.
-
Select an item in the list to complete the fragment by doing one of the following:
-
Selecting it and pressing Enter
-
Double-clicking it
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.
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.
-
Select the "Preview" tab of the JET editor.
-
Browse the workspace for the EMF based input model file.
-
Select an model item in the tree that is the expected output for the template, and click on apply