There are two ways to create a new Groovy Script Project.
In case of a freshly started client, a direct link helps you create the Snow Owl Groovy Script project.
If projects have already been created, the direct link disappears.
In this case, the scripting project can be created via a Context Menu option. Right-click on the whitespace in the Project Explorer View to reveal the Context Menu.
Once you named your project and hit Finish
in the New Script Project Wizard, you are presented with the default content along with a set of examples.
To create a new script file in Snow Owl, right-click on the script project and select the New file... option from the Context Menu.
Enter a file name with a .groovy
file extension (e.g. Tet-file.groovy
), and click Finish
.
Once you hit Finish
the new Groovy Editor opens automatically and you can start creating your script.
At any point during script authoring, the content assist can be invoked by hitting Ctrl
+ Space
. When the content assist is invoked, users can pick from different selections that are valid depending on the current position of the cursor.