Bug 66088 - Java-Code Copy to Clipboard dosn't support Colorinformations
Summary: Java-Code Copy to Clipboard dosn't support Colorinformations
Status: RESOLVED DUPLICATE of bug 64498
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-08 05:59 EDT by Peter B. Dick CLA
Modified: 2004-06-14 04:14 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 Peter B. Dick CLA 2004-06-08 05:59:56 EDT
Since 3.0 RC1:

I copy Java-Code into the clipboard. After pasting the clipboard in an other
application the Java-Code is not color-coded in the other application such as
Lotus Notes.
A copy of the console is looking very fine in Lotus Notes.
Comment 1 DJ Houghton CLA 2004-06-08 08:51:43 EDT
You have to go to the Edit menu, hit Paste Special, and choose Rich Text.
Comment 2 Peter B. Dick CLA 2004-06-08 10:35:11 EDT
We've tested the following combinations;

1 PC Win 2000 with 3.0 M9 --> copy as Rich Text, ok
1 PC Win 2000 with 3.0 M9 --> copy as Text
1 PC Win 2000 with 3.0 RC1--> copy as Text
1 PC XP Prof  with 3.0 RC1--> copy as Text



Comment 3 DJ Houghton CLA 2004-06-08 11:24:58 EDT
I don't understand what you are saying with your last comment. I don't see a
"copy as text" or "copy as rich text" command in Eclipse.

This is what I am doing:
- select code in Java editor
- hit ctrl-c to copy
- go to Notes
- from the Edit menu choose Paste Special
- select Rich Text

-> text is pasted correctly with syntax colouring

What are the steps that you are doing? 
Comment 4 Peter B. Dick CLA 2004-06-08 12:06:03 EDT
I did exact the same: 
- select code in Java editor
- hit ctrl-c to copy
- go to Notes
- from the Edit menu choose Paste Special

What happens now ?

On three different computers Notes gives you only the choice of Paste Special
--> as Text.
In one case Notes gives you the choice of  Paste Special --> as Text / as Rich Text.

(Same behavior in Word 2003)
 
Only once Notes offers 'Text' and 'Rich Text'.


Comment 5 John Arthorne CLA 2004-06-08 12:09:41 EDT
Try pasting into WordPad on the same machine. If color information is preserved
on WordPad and not on Notes, then it's a problem with Notes.
Comment 6 Peter B. Dick CLA 2004-06-08 14:06:57 EDT
Ok, I did it and the result is;

Eclipse 3.0 RC1
WordPad:  no color information is preserved
Notes  :  no color information is preserved

Eclipse 3.0 Build 200310101454 (M6 ?)
WordPad:  color information is preserved
Notes  :  color information is preserved
Comment 7 DJ Houghton CLA 2004-06-09 08:27:22 EDT
This works ok for me in build i0608-0800.

Moving to Platform/UI to confirm that it was a problem in RC1 but will be fixed
in RC2.
Comment 8 Dani Megert CLA 2004-06-14 04:14:15 EDT

*** This bug has been marked as a duplicate of 64498 ***