Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 294464 - [Gtk] CCombo.select() replaces clipboard contents due to invocation of Text.selectAll()
Summary: [Gtk] CCombo.select() replaces clipboard contents due to invocation of Text.s...
Status: RESOLVED DUPLICATE of bug 290851
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-06 09:46 EST by Jörg Thönnes CLA
Modified: 2009-12-02 02:14 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Thönnes CLA 2009-11-06 09:46:14 EST
Sometimes I select something, e.g. an URL into the clipboard and then go to Mylyn to put this in a task etc.
And then it happens, that my selection is overwritten by the Mylyn GUI. Since I am using the KDE klipper application,
I can always go back to the selection history and re-select it. But this means:
* moving the mouse down
* open a pop-up
* select the entry
* move mouse back to Mylyn GUI

This is quite annoying.

Concrete example:

1. Select an URL into the clipboard
2. Open an existing local task
3. Click on the icon to create a new sub-task (upper right corner)
(Now I want to fill in the URL field..., but the section "Attributes" is closed
4. Click on "Attributes" to open it
5. Now the category "Uncategorized" is selected, replacing my previous selection

If I remember other examples, I will comment on this bug.

-- Configuration Details --
Product: Eclipse 1.2.1.20090812-1036 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.mylyn_feature 3.3.0.v20091015-0500-e3x
Comment 1 Steffen Pingel CLA 2009-11-25 20:54:59 EST
I have noticed this, too. As far as I can tell this is caused by a call to CCombo.select(index) to set the selected value on the category chooser when the task editor controls are constructed. 

CCombo.select(index) calls text.selectAll() which replaces the clipboard content on Gtk:

	text.setText (list.getItem (index));
	text.selectAll ();

I am moving this to platform for advice on how to set the selected value for a CCombo without affecting the clipboard.
Comment 2 Praveen CLA 2009-12-01 03:57:44 EST
This is a duplicate of bug#290851
Comment 3 Jörg Thönnes CLA 2009-12-02 02:14:36 EST
(In reply to comment #2)
> This is a duplicate of bug#290851

Yes, you are right. Closing as duplicate.

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