Hi Thomas, The copy-past behavior is implemented with the drag-and-drop API of SWT. Specifically, the Clipboard and FileTransfer are of interest for the copy-pasting of files. Have a look at this article as a starter: https://www.eclipse.org/articles/Article-SWT-DND/DND-in-SWT.html#_Using_the_Clipboard
Best Regards, Rolf Op di 26 jan. 2021 om 11:29 schreef Thomas Singer <ts-...@syntevo.com>: > Hi, > > For text everything works as expected. Cutting a text immediately > removes it from the text control (it is stored in the clipboard) and on > paste it will be inserted. > > But I'm trying to understand how to handle a typical file manager > workflow: a user selects a file in the Windows Explorer, invokes Cut > (Ctrl+X) and in an SWT-based application pastes the file. How can the > SWT-based application find out whether the file was cut or copied? > > -- > Best regards, > Thomas Singer > _______________________________________________ > platform-dev mailing list > platform-dev@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/platform-dev >
_______________________________________________ platform-dev mailing list platform-dev@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev