Interface ICopyDelegate


  • public interface ICopyDelegate
    A handler of copy to clipboard events. TODO It should be refactored in G5V8DT-8095. IStructuredSelection is not expected in service layer.
    • Method Detail

      • isCopySupported

        boolean isCopySupported​(IStructuredSelection selection)
        Check that items can be copied.
        Parameters:
        the - selection to be copied, cannot be null
        Returns:
        true if it's possible to copy, otherwise false
      • process

        void process​(IStructuredSelection selection)
        Copy items to the clipboard.
        Parameters:
        selection - the selection to be copied, cannot be null