I have a variable (actually it's a field) that I use for listing the columns in a CSV file that I'm parsing. I want to pull strings out of the line by enum ordinal rather than integer. For example,
fieldArray[fields.id.ordinal]
instead of
fieldArray[1]
I do this alot so I want to define a live template $enumclass$.$enum$.ordinal() and have idea give me a choice of enumerated types for $enumclass$ and a list of the enums for $enum$.
I can't get IDEA to suggest the enum class.
Description
Support feedback:
I have a variable (actually it's a field) that I use for listing the columns in a CSV file that I'm parsing. I want to pull strings out of the line by enum ordinal rather than integer. For example,
fieldArray[fields.id.ordinal]
instead of
fieldArray[1]
I do this alot so I want to define a live template $enumclass$.$enum$.ordinal() and have idea give me a choice of enumerated types for $enumclass$ and a list of the enums for $enum$.
I can't get IDEA to suggest the enum class.
descendantClassesEnum("java.lang.Enum")