Transferable (Editor editor, DataContext dataContext) { Clipboard clip = editor.getComponent().getToolkit().getSystemSelection(); if (clip == null) return null; try { return clip.getContents(null); } catch (Exception e) { LOG.info(e); return null; } }