Well, you can add a template for Eclipse as follows:
${condition:field(boolean)}? ${positive:field(void)}: ${negative:field(void)};
Call it something like tern , and you can automatically create a three-dimensional operator for you.
(Not sure if this is what you want)
jjnguy
source share