Use LanguageFeature.State enum instead of CoroutineSupport

This commit is contained in:
Alexander Udalov
2017-03-13 13:44:58 +03:00
parent 34e131c928
commit 7a240b63c7
13 changed files with 89 additions and 85 deletions
@@ -63,11 +63,11 @@ enum class LanguageFeature(
val presentableText get() = if (hintUrl == null) presentableName else "$presentableName (See: $hintUrl)"
enum class State {
ENABLED,
ENABLED_WITH_WARNING,
ENABLED_WITH_ERROR,
DISABLED;
enum class State(override val description: String) : DescriptionAware {
ENABLED("Enabled"),
ENABLED_WITH_WARNING("Enabled with warning"),
ENABLED_WITH_ERROR("Disabled"), // TODO: consider dropping this and using DISABLED instead
DISABLED("Disabled");
}
companion object {