GitHub user matthiasblaesing added a comment to the discussion: Windows 
clipboard issues discussion

If I'm not mistaken these are the locations that need to be taken care of.

Direct implementors of `FlavorListener;`:

https://github.com/apache/netbeans/blob/e6698c997933a75879780f095dacfe1d731874f3/platform/openide.explorer/src/org/netbeans/modules/openide/explorer/ExplorerActionsImpl.java#L811-L813

Updates enabled state for Copy/Cut/Paste/Delete actions are enabled (replace 
with direct queries, see `ExplorerActions` below)?)

https://github.com/apache/netbeans/blob/e6698c997933a75879780f095dacfe1d731874f3/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java#L311-L330

Redispatches flavor change event to other flavorlistener (WHY???) and calls 
into `ExClipboard` to invoke `ClipboardListener`

Implementors of `ClipboardListener`:

https://github.com/apache/netbeans/blob/e6698c997933a75879780f095dacfe1d731874f3/platform/openide.util.ui/src/org/openide/util/datatransfer/ExClipboard.java#L59-L74

Invoked by `NbClipboard` (essentially adapter from `FlavorListener` to 
`ClipboardListener`.

https://github.com/apache/netbeans/blob/e6698c997933a75879780f095dacfe1d731874f3/ide/editor/src/org/netbeans/modules/editor/EditorModule.java#L205-L207

ClipboardHistory

https://github.com/apache/netbeans/blob/e6698c997933a75879780f095dacfe1d731874f3/java/form/src/org/netbeans/modules/form/ComponentInspector.java#L448-L454

Determine what can be pasted?

https://github.com/apache/netbeans/blob/e6698c997933a75879780f095dacfe1d731874f3/platform/openide.compat/src/org/openide/explorer/ExplorerActions.java#L774-L828

Decide whether Copy/Cut/Paste/Delete actions are enabled (replace with direct 
queries?).   its unclear why it is in used - update is called anyway?!


GitHub link: 
https://github.com/apache/netbeans/discussions/7051#discussioncomment-12646525

----
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

Reply via email to