Class HierarchicalTreePasteDataCommandHandler

    • Constructor Detail

      • HierarchicalTreePasteDataCommandHandler

        public HierarchicalTreePasteDataCommandHandler​(SelectionLayer selectionLayer,
                                                       InternalCellClipboard clipboard)
        Parameters:
        selectionLayer - SelectionLayer that is needed to determine the position to paste the values to.
        clipboard - The InternalCellClipboard that contains the values that should be pasted.
    • Method Detail

      • isPasteAllowed

        protected boolean isPasteAllowed​(ILayerCell sourceCell,
                                         ILayerCell targetCell,
                                         IConfigRegistry configRegistry)
        Description copied from class: InternalPasteDataCommandHandler
        Checks if the cell at the target coordinates supports the paste operation or not.

        Note: The coordinates need to be related to the SelectionLayer, otherwise the wrong cell will be used for the check.

        Overrides:
        isPasteAllowed in class InternalPasteDataCommandHandler
        Parameters:
        sourceCell - The ILayerCell that is copied and should be pasted to the target cell.
        targetCell - The ILayerCell to which the content of the source cell should be pasted to.
        configRegistry - The IConfigRegistry needed to access the configuration values.
        Returns:
        true if the cell supports the paste operation, false if not