There is already a special copy to java.
It can be enhanced: remove the extra blank spaces and the \n. It is better to have a smaller string in java. (Maybe in 2 steps with a UnBeautifier that trims all the extra spaces)
I'd like also a paste from java.
For example:
"select t.* from emp t " +
"where t.empno = ?"
could be paste into a Test Window as
select t.* from emp t where t.empno = :param1
with the variable param1 scanned in the variable panel.