Class AbstractMoveRowAction

    • Method Detail

      • sortSelectionBasedOnIndex

        public static void sortSelectionBasedOnIndex​(java.util.List<?> selection,
                                                     java.util.List<?> list)
        Sorting helper for a table viewer selection.
        Parameters:
        selection - the selection to sort
        list - the index list
      • canExecute

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

        protected java.util.List<?> getContainments()
        Returns the list containing all objects of the table viewer.
        Returns:
        the containments list