In order to define a new Code Snippet, follow the steps below:
- Click on New Snippet on the +Add while on Code Snippets tab
. You can select Folder to create a folder to organize your Code Snippets. To create a new locator, select Snippet. - This will open up the New Snippet tab
- Fill out the information needed to define your new snippet below and click on the Save button.
Name is the name of your snippet.
Keywords will be used during searching.
Class is the fully qualified path to the Java class developed.
Method is the method to invoke from the above class.
Dependencies is dependency to any jar file (the developed class file should be bundled in a jar file and uploaded through ArtifactsRepository ->File Uploads) used.
Data Templates includes all the data templates you want to make available to your snippet.