Enum Class UnifiedDiff.ToolbarAction

java.lang.Object
java.lang.Enum<UnifiedDiff.ToolbarAction>
org.eclipse.compare.unifieddiff.UnifiedDiff.ToolbarAction
All Implemented Interfaces:
Serializable, Comparable<UnifiedDiff.ToolbarAction>, Constable
Enclosing class:
UnifiedDiff

public static enum UnifiedDiff.ToolbarAction extends Enum<UnifiedDiff.ToolbarAction>
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 Constants
    Enum Constant
    Description
    Applies 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 Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static UnifiedDiff.ToolbarAction[] 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 UnifiedDiff.ToolbarAction 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