Groovy service editor
The Groovy service editor is displayed when you open a Groovy file (.groovy
). Similar to most third-party editors,
this editor features syntax highlighting, line numbering, and content-assist1 to help you write
Groovy services faster and more conveniently.
The default Groovy service editor in Martini Desktop is called the "Gloop-enabled Groovy editor". It provides additional functionality to 'decorate' Groovy services with Gloop annotations. It is connected to the Input/Output view which can be used to decorate method parameters and return types.
Properties view
The Properties view can also be used to add additional object properties of an input or return value of the method.
Place the cursor in a method and as you edit the inputs and outputs in the view,
Martini Desktop will modify your code, format it, and optimise your imports.
Just make sure the method is public
static
.
The parameters of the method is generated in Input while the return type of the method is displayed in Output. It will be shown while your text cursor is on the signature of the method.
Unsupported by Martini Online
As of the moment, the Input/Output view cannot be used alongside Groovy services in Martini Online.