sysmat commented on issue #3962:
URL: https://github.com/apache/netbeans/issues/3962#issuecomment-1868817855

   - A code base is over my understanding 
   - `DocumentationScrollPane` only register copy to clipboard what about paste 
from clipboard; In my workflow I see a lot of times **paste**  not working
   - `KeyPasteType` why you have MODE_PASTE_WITHOUT_VALUE, if there is nothing 
to paste it why you need it
   - `KeyPasteType .paste()` always return `Transferable` of null, but then in 
`actionPerformed`
   
   ```java
   Transferable transferable = (Transferable) systemClipboard.getContents(null);
                       String clipboardContents = "";
                       try {
                           if 
(transferable.isDataFlavorSupported(DataFlavor.stringFlavor)) {
                               clipboardContents = (String) 
transferable.getTransferData(DataFlavor.stringFlavor);
                           } else if 
(transferable.isDataFlavorSupported(DataFlavor.getTextPlainUnicodeFlavor())) {
                               clipboardContents = (String) 
transferable.getTransferData(DataFlavor.getTextPlainUnicodeFlavor());
                           }
                       } catch (UnsupportedFlavorException ex) {
                           logger.log(Level.INFO, "Unsupported transfer 
flavor", ex);
                       } catch (IOException ex) {
                           logger.log(Level.INFO, "IOException during paste 
operation", ex);
                       }
   ```
   - is it possible when copy from different application that `DataFlavor` is 
something else


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.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