Class MoveRowUpAction

  • All Implemented Interfaces:
    Action

    public class MoveRowUpAction
    extends AbstractMoveRowAction
    Action to move a row upwards in a table viewer (requires the containment reference to be ordered).
    Since:
    1.18
    Author:
    Mat Hansen
    • Field Detail

      • ACTION_ID

        public static final java.lang.String ACTION_ID
        The ID of this action.
        See Also:
        Constant Field Values
      • DEFAULT_KEYBINDING

        public static final java.lang.String DEFAULT_KEYBINDING
        The default key binding of this action.
        See Also:
        Constant Field Values
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from interface: Action
        Return the ID for this action. Must be unique.
        Returns:
        the action ID
      • execute

        public void execute()
        Description copied from interface: Action
        Execute the action.
      • canExecute

        public boolean canExecute()
        Description copied from interface: Action
        Verify that this action can be executed given the current action context.
        Specified by:
        canExecute in interface Action
        Overrides:
        canExecute in class AbstractMoveRowAction
        Returns:
        true in case execute() can be called, false otherwise