1. Open query window and type "select * from orders"
2. Select all text and copy to clipboard
3. Paste into OpenOffice and see there is no syntax coloring
|
48 KB
It works on the standalone demo so it's probably an ADS regression.
Larion worked a while back on a custom TransferHandler within ADS that was interfering with the block selection.
My guess is you don't delegate to the component's copy action (should be a RTFCopyLineAction) and instead call JTextComponent.copy() directly.
This works in 11.0.14, but does not work for 12.0 - { rc-23, rc-1, beta-14, alpha-61 }.
When we create an editor we call CScrapbook.addSupportFor(JTextComponent) which adds the RTFCopyLineAction. Larion commented out the "super.actionPerformed(evt,target);" of the annonymous FTFCopyLineAction instance in reference to Block Copy in SVN #28031. I think this SVN revision needs to be copy reviewed as it also commented out the previous custom Paste action.
This works in 11.0.14, but does not work for 12.0 - { rc-23, rc-1, beta-14, alpha-61 }.
When we create an editor we call CScrapbook.addSupportFor(JTextComponent) which adds the RTFCopyLineAction. Larion commented out the "super.actionPerformed(evt,target);" of the annonymous FTFCopyLineAction instance in reference to Block Copy in SVN #28031. I think this SVN revision needs to be copy reviewed as it also commented out the previous custom Paste action.
I don't have access to CScrapbook but I don't see why the super call was commented entirely. You could use EditorPreferences.isRectangularSelection to differentiate and just add custom code when rectangular selection is on. (Or, just call super when isRectangularSelection returns false).
I don't have access to CScrapbook but I don't see why the super call was commented entirely. You could use EditorPreferences.isRectangularSelection to differentiate and just add custom code when rectangular selection is on. (Or, just call super when isRectangularSelection returns false).
Verified in 12.0.0-rc-23-3. Works in LibreOffice Writer
Verified in 12.0.0-rc-23-3. Works in LibreOffice Writer
Issue #7752 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build 12.0.0-rc-23-3 |
No time estimate |
It works on the standalone demo so it's probably an ADS regression.
Larion worked a while back on a custom TransferHandler within ADS that was interfering with the block selection.
My guess is you don't delegate to the component's copy action (should be a RTFCopyLineAction) and instead call JTextComponent.copy() directly.