GitHub user neilcsmith-net edited a comment on the discussion: Windows clipboard issues discussion
Yes, I knew that, once .. brain freeze today! :laughing: It is specified that calls _might_ be redundant and the result of clipboard rather than flavor changes mind you. I'm trying to understand why this was added to NbClipboard, and whether it served any purpose. It's a limited way to track external contents, assuming the flavor listeners are called, but we ignore those calls anyway. And internal changes are primarily tracked via `NbClipboard::setContents`, which the editor doesn't call since NB25. That means the flavor listener really didn't add anything to the pre NB25 behaviour as far as I can tell. Currently it does give us first editor value in the history, somewhat by chance. I don't see that as a reason to keep it. Now copy and pasting in the explorers (eg. Project, Favorites, etc.) does still call through `NbClipboard::setContents`. We might consider something similar to https://github.com/apache/netbeans/blob/master/platform/openide.explorer/src/org/netbeans/modules/openide/explorer/ExplorerActionsImpl.java#L618 for editors? GitHub link: https://github.com/apache/netbeans/discussions/7051#discussioncomment-12662006 ---- This is an automatically sent email for notifications@netbeans.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@netbeans.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists