Class MoveResourceAction

    • Field Detail

      • destinations

        protected List destinations
        Keep a list of destinations so that any required update can be done after the move.
    • Constructor Detail

      • MoveResourceAction

        public MoveResourceAction​(IShellProvider provider)
        Creates a new action.
        Parameters:
        provider - the shell for any dialogs.
        Since:
        3.4
    • Method Detail

      • getDestinations

        protected List getDestinations()
        Returns the destination resources for the resources that have been moved so far.
        Returns:
        list of destination IResources
      • getResources

        protected IResource[] getResources​(List resourceList)
        Description copied from class: CopyResourceAction
        Returns an array of resources to use for the operation from the provided list.
        Overrides:
        getResources in class CopyResourceAction
        Parameters:
        resourceList - The list of resources to converted into an array.
        Returns:
        an array of resources to use for the operation
      • runOperation

        protected void runOperation​(IResource[] resources,
                                    IContainer destination)
        Description copied from class: CopyResourceAction
        Runs the operation created in createOperation
        Overrides:
        runOperation in class CopyResourceAction
        Parameters:
        resources - source resources to pass to the operation
        destination - destination container to pass to the operation