I am making use of SWT Clipboard for copying multiple items to the clipboard using the method setContents(Object[] data, Transfer[] dataTypes), where in the same method works well with more than one type of data having their respective Transfer types placed on the system clipboard. When multiple items belonging to the same type of data placed on the system clipboard does not work, wanted to make sure whether this is supported or not? Are there any alternatives available for copy/paste feature for holding multiple items belonging to the same data type as well as different data types?
Object[] items = nodeItemsToCopy.toArray(new NodeItem[nodeItemsToCopy.size()]);
List<TransferNodeItem> transferNodeItem = getTransferNodeItem();
Transfer[] types = transferNodeItem.toArray(new Transfer[transferNodeItem.size()]);
clipboard.setContents(items, transferNodeItem);
Here items are multiple items belonging to the same data type as well as different type with their respective transfer types.