I’m looking for a faster way to use enums as parameters. like if I have a method
void junk(EnumVar var){
Instead of typing EnumVar.VAR_1 I’d rather just type “VAR1” and then use content assist to do the rest, or have VAR_1 be acceptable alone, or even just use content assist give me some options. I know eclipse will do this when I type enumvar.…
Is there any way to have eclipse help me work with enums faster? sort of how it does with switches.
Static import may be what you need.
For instance try
import static foo.bar.MyEnum.VAR_1;