Enum Class SaveMode

java.lang.Object
java.lang.Enum<SaveMode>
org.eclipse.handly.buffer.SaveMode
All Implemented Interfaces:
Serializable, Comparable<SaveMode>, Constable

public enum SaveMode extends Enum<SaveMode>
Indicates whether a buffer is to be saved after a change has been applied to it.
  • Enum Constant Details

    • KEEP_SAVED_STATE

      public static final SaveMode KEEP_SAVED_STATE
      Indicates that the buffer's save state has to be kept. This means an unsaved buffer is still unsaved after applying the change and a saved one will be saved.
    • FORCE_SAVE

      public static final SaveMode FORCE_SAVE
      Indicates that the buffer is to be saved after the change has been applied.
    • LEAVE_UNSAVED

      public static final SaveMode LEAVE_UNSAVED
      Indicates that the buffer will be left with unsaved changes after applying the change.
  • Method Details

    • values

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

      public static SaveMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null