[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Selection event for SWT Combo text
|
- From: deboer@xxxxxxxxxx (Tim deBoer)
- Date: 12 Sep 2001 15:57:57 GMT
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
I'm trying to write cut, copy, and paste actions for an SWT Combo widget.
It is a dropdown list where the text field is still edittable by the user.
I've been able to create and run the actions okay, but I've having trouble
finding the correctly events so that I can disable/enable the actions when
appropriate. (for instance, when nothing is selected in the text part of
the widget, the cut should be disabled)
In other text widgets the SelectionEvent is fired when the textual
selection has changed, but in the Combo this is only fired when an item
from the dropdown list is selected. Is there another event fired to tell
when the user modifies the selection in the text part of the Combo?
(either using the keyboard or the mouse)