The template you found is using Eclipse’s built-in code template functions to generate a public static final constant field.
${n:newField(i, true, true, true, true)}${i:inner_expression(novalue)}${cursor}
Breakdown:
${n:newField(i, true, true, true, true)}
This macro tells Eclipse to create a new field.
First argument i -> refers to the type/expression placeholder.
The four true flags mean:
static = true
final = true
initialize = true
public = true
Together, this produces a public static final field (i.e. a constant).
Example expansion:
public static final int MY_CONSTANT = 0;
${i:inner_expression(novalue)}
This defines the “inner expression” placeholder for the field type or value.
(novalue) means it doesn’t prefill anything – you will type in the type/value yourself when the template expands.
${cursor}
This is where the editor caret will be placed after expansion, so you can continue editing from there.
In short:
When you invoke this template, Eclipse auto-generates a public static final constant. You just need to fill in the type (int, String, etc.), the name, and optionally the value.