Bug 150629 - Cut, copy and paste doesn't always work
Summary: Cut, copy and paste doesn't always work
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-07-14 05:15 EDT by Graham Smith CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Smith CLA 2006-07-14 05:15:42 EDT
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.
Comment 1 Frederic Fusier CLA 2006-07-14 07:05:28 EDT
Move to JDT/UI.
It would be helpful to know if you have any exceptions traces in your .log file...

Comment 2 Graham Smith CLA 2006-07-14 07:59:21 EDT
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.
Comment 3 Dani Megert CLA 2006-07-17 06:45:31 EDT
What version of Eclipse are you using?
It would be great to have a reproducible test case. Most likely you're seeing bug 139942.
Comment 4 Graham Smith CLA 2006-07-17 07:30:47 EDT
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.
Comment 5 Dani Megert CLA 2007-06-22 09:58:58 EDT
Get rid of deprecated state.
Comment 6 Dani Megert CLA 2007-06-22 10:04:19 EDT
.