Community
Participate
Working Groups
Most of the time cut, copy and paste works fine (in Java editors) but now and then for reasons I can't determine one or more of the functions simply stops working. For instance, I might be able to cut or copy a line of code but not paste it. I can prove it was cut / copied because I can paste it into word pad. I generally use the keyboad shortcuts for cut, copy and paste but I have, in desparation, also tried the menu entries which showed the same behaviour.
Move to JDT/UI. It would be helpful to know if you have any exceptions traces in your .log file...
The .log file didn't contain any exceptions that looked like they could be related to this issue. Experimenting a bit indicates that it might be related to setting the data flavour or something in that area. In the situation where I can cut some code but not then paste it if I paste the section of code into word pad and then cut it from word pad I can paste into Eclipe without issue. My guess is that word pad is setting the data flavour to text where as Eclipse has set it to something that the java editor can't / won't accept.
What version of Eclipse are you using? It would be great to have a reproducible test case. Most likely you're seeing bug 139942.
I'm using: Eclipse SDK Version: 3.2.0 Build id: M20060629-1905 I can't produce a test case for this bug. It is very intermittent. Sometimes it just refuses to paste a particular line of code. I'll retype that line in another class to try and produce a test case and, you guessed it, it works fine. The bug you pointed me to is close enough that I think it's probably the same thing but the test case given works fine for me.
Get rid of deprecated state.
.