java.lang.Object
java.lang.Enum<State>
io.spring.format.formatter.intellij.state.State
All Implemented Interfaces:
Serializable, Comparable<State>, java.lang.constant.Constable

public enum State extends Enum<State>
The state of the plugin.
Author:
Phillip Webb
  • Enum Constant Details

    • ACTIVE

      public static final State ACTIVE
      The plugin is active.
    • NOT_ACTIVE

      public static final State NOT_ACTIVE
      The plugin is not active.
  • Method Details

    • values

      public static State[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static State valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • put

      public void put(com.intellij.openapi.project.Project project)
      Put this state to the given project.
      Parameters:
      project - the project that should save the state
    • get

      public static State get(com.intellij.openapi.project.Project project)
      Return the state from the given project.
      Parameters:
      project - the project to check
      Returns:
      the state of the project