Community
Participate
Working Groups
I have developed an Eclipse Plugin with a View containing a StyledText component declared as: StyledText textPane = new StyledText(parent, SWT.H_SCROLL | SWT.V_SCROLL); textPane.setEditable(false); textPane.setTabs(40); textPane.setText("Some long text..."); This displays read-only text which when I select with Ctrl-C is correctly copied to the Windows clipboard and available to Paste in other apps. However, selecting different text in the component and pressing Ctrl-C fails since the original copy buffer is not replaced with the new selection. Only the first ever copy selections is retained. The strange thing is that this works OK when I am testing my Plugin and launch it in another Runtime Workbench for testing. PB
I have narrowed it down to a conflict that happens when a Java file is open at the same time as a plugin view containing a StyledText component: If I just have my Plugin View open with no Java files open, the Ctrl-C copy/paste from the StyledText component in my plugin works every time. If I then open a Java file in the Java perspective and leave it open, the copy/paste from the StyledText component in my plugin does not work. However, if I then highlight some text in the Java Editor and leave it highlighted, the copy/paste works from the StyledText component. PB
Some more information: Ctrl+Insert key works OK, Ctrl+C does not. Maybe the Java Editor is stealing the Ctrl+C key binding from the StyledText component? PB
This is caused by the key bindings in Eclipse. Moving to UI team.
I can reproduce this problem using Linux-GTK+. I will attach a plug-in that shows the problem.
Created attachment 13273 [details] Zip of a project containing a styled text view Steps to reproduce: 1.) Import the zip file into your workspace and launch a self-hosted session. 2.) Open the view "Test Views > Styled Text Views". 3.) Copy some text from the view 4.) Paste into a Java editor 5.) Try to copy some more text. The text is not copied (checked klipper, Eclipse and external apps). Once in this state, there doesn't seem to be anyway of restoring sanity.
Then try closing the Java Editor, or selecting some text in the Java Editor, and sanity is restored. At least on Windows it is. PB
You will also notice that most of the commands/actions are disabled in the Edit menu including Copy.
Moving Dougs bugs
Is this still a problem in 3.3? PW
Changes requested on bug 193523
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.