Coming from Windows, when I use Eclipse and mouse over a class / method / variable that has a Javadoc - a Javadoc window pops up (or alternatively you can hit F2). Eclipse on Mac OS X 10.8.2 has the same behavior. However where they differ is that in windows I can highlight content in the popup window and copy it (Ctrl+C) and then paste it somewhere. I cannot get this to work in Mac OS X 10.8.2. I've tried both command key + C (which works everywhere else) and I've also tried Ctrl+C. No dice.
I use this frequently when setting a local variable to a value returned by a getter method. I can just open the Javadoc and copy the return type, and then paste it into the editor as the type for my new local variable. It saves a lot of time if the return type is a complicated Map type with generic arguments.
Also it is helpful when helping out co-workers to be able to copy / paste portions of the Javadoc to them via IM.
Is this not possible on Mac OS X 10.8.2? Is there a work around?
Edit: Using Eclipse Juno SR 2
It appears to be a bug. For me, it will only copy the first time. Anytime after that you try to copy, it doesn't work -- until you restart Eclipse. Also affects Javadoc view unfortunately, but not the editor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With