Package org.eclipse.handly.buffer
Enum Class SaveMode
- All Implemented Interfaces:
Serializable
,Comparable<SaveMode>
,Constable
Indicates whether a buffer is to be saved after a change has been
applied to it.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that the buffer is to be saved after the change has been applied.Indicates that the buffer's save state has to be kept.Indicates that the buffer will be left with unsaved changes after applying the change. -
Method Summary
-
Enum Constant Details
-
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
Indicates that the buffer is to be saved after the change has been applied. -
LEAVE_UNSAVED
Indicates that the buffer will be left with unsaved changes after applying the change.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-