Enum Class UnifiedDiff.ToolbarAction
- All Implemented Interfaces:
Serializable, Comparable<UnifiedDiff.ToolbarAction>, Constable
- Enclosing class:
UnifiedDiff
Identifies a built-in action of a unified diff toolbar, so that its text or
image can be replaced. Which actions are shown depends on the
UnifiedDiffMode; unused constants are simply ignored.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplies the hovered diff, in the toolbar shown for a single diff.Applies every diff, in the toolbar shown for all diffs.Discards the hovered diff, in the toolbar shown for a single diff.Discards every diff, in the toolbar shown for all diffs.Keeps the hovered diff, in the toolbar shown for a single diff.Keeps every diff, in the toolbar shown for all diffs.Reveals the next diff, in the toolbar shown for all diffs.Reveals the previous diff, in the toolbar shown for all diffs.Reverts the hovered diff, in the toolbar shown for a single diff.Reverts every diff, in the toolbar shown for all diffs.Undoes the hovered diff, in the toolbar shown for a single diff.Undoes every diff, in the toolbar shown for all diffs. -
Method Summary
Modifier and TypeMethodDescriptionstatic UnifiedDiff.ToolbarActionReturns the enum constant of this class with the specified name.static UnifiedDiff.ToolbarAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCEPT_ALL
Applies every diff, in the toolbar shown for all diffs. -
HIDE_ALL
Discards every diff, in the toolbar shown for all diffs. -
REVERT_ALL
Reverts every diff, in the toolbar shown for all diffs. -
KEEP_ALL
Keeps every diff, in the toolbar shown for all diffs. -
UNDO_ALL
Undoes every diff, in the toolbar shown for all diffs. -
PREVIOUS
Reveals the previous diff, in the toolbar shown for all diffs. -
NEXT
Reveals the next diff, in the toolbar shown for all diffs. -
ACCEPT
Applies the hovered diff, in the toolbar shown for a single diff. -
HIDE
Discards the hovered diff, in the toolbar shown for a single diff. -
REVERT
Reverts the hovered diff, in the toolbar shown for a single diff. -
KEEP
Keeps the hovered diff, in the toolbar shown for a single diff. -
UNDO
Undoes the hovered diff, in the toolbar shown for a single diff.
-
-
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
-