Community
Participate
Working Groups
Hi there! I am using: Version: 3.0.0 Build id: 200405211200 When using older versions of Eclipse (e.g M7) copying of Java source code from the editor into the clipboard contained rich text formatting information like color, bold ... besides the plain text. Since I upgraded to M9 this feature does not work anymore, only plain text is copied. Scenario: - open any Java editor - mark text block - Strg+C or Menu Edit/Copy to copy the text - Insert text into some client (understanding rich text, in my case Notes) ==> plain text is copied, any code formatting is lost. Besides that, great job! :-D Axel
Hmm..this works ok for me with the Java Editor and Lotus Notes. In Notes I right-click, hit Paste Special, and then select "Rich Text" instead of "Text". Did you recently upgrade or change your Notes settings? (I think that I did and I think that it changed my default to paste plain text) Moving to Platform/UI for comment.
I did not change any settings for Notes. But you never know what the admins do ;-) Anyway I double checked the whole thing with M7: - I retested the scenario with notes (besides we are using 4.xx, no paste special :-( ) ==> works fine - I tried to paste the text into wordpad ==> works fine Using M9 again: - copying into notes ==> does not work - copying into workpad ==> does not work So, if it works for you, it might be something OS-specific ?
The StyledText control was reimplemented by SWT. Perhaps this is a bug in the control itself?
If it comes from StyledText control, there should be other GUI elements in Eclipse, with which I could reproduce the behaviour. Right? In that case, can you please name some other components overriding StyledText? thx
Tried to copy from Eclipse RC1, JDK 1.5b on Win XP to WordPad and lost the formatting/color information. Btw. Axel is not using JDK1.5. With Build id: 200405120800 it is working.
Try going to the Preferences->Java->Editor->Templates page. The template preview uses Styled Text I think. For another editor example, you could view the source page in the plugin.xml editor.
Tried with template editor and PDE editor. In both cases the formatting/coloring information have been preserved correctly in RC1. Move to JDT-UI?
Sounds like a plan.
Seems to be related to #61273. https://bugs.eclipse.org/bugs/show_bug.cgi?id=61273
Martin, please investigate.
It has to do with the new folding capabilities. The rtf clipboard data created by the style text widget can't be used if the code is folded.
Just a remark: copying unfolded code into the clipboard, has the same result. No rtf.
Ok, sorry for the former remark. When switching the folding of in the preferences, rtf works fine. So you were absolutely right.
*** This bug has been marked as a duplicate of 64498 ***