In the while template,
while (${condition:var(boolean)}) { ${line_selection}${cursor} }
${condition:var(boolean)} matches members and static members. Note that content-assist for var says:
$ {ID: var (type [, type] *)} Computes a field, local variable, or parameter visible in the current scope, which is a subtype of any given type. If no type is specified, primitive variables.
In the foreach template, the template variable is different:
for (${iterable_type} ${iterable_element} : ${iterable}) { ${cursor} }
Document for the variable ${iterable} :
Suggestion for iteration (array or java.lang.Iterable)
It is not indicated whether (static) members should be proposed or not.
EDIT: This documentation page claims to
$ {iterable} Computes the sentence for a repeating or array visible in the current area.
Thus, according to the document, this may actually be a mistake. In fact, this has already been reported here .
source share