Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [CDateTime] No Selection Events?
[CDateTime] No Selection Events? [message #442693] Fri, 31 July 2009 13:22 Go to next message
Tom Seidel is currently offline Tom SeidelFriend
Messages: 91
Registered: July 2009
Member
Hi,

I'm setting the selection via CDateTime#setSelection(Date)

I've registered a selection listener to get notified if the user or any
other code sets the date, but the Widget does only throw SelectionEvents
if the date was changed within the widget. I think this is a bug IMHO
since it must be possible to get such types of events also if any other
code sets the selection. Hints?

Cheerz
Tom
Re: [CDateTime] No Selection Events? [message #468211 is a reply to message #442693] Tue, 04 August 2009 14:53 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Hi Tom,

This is a common rule in SWT : if you change a widget's property within your code, no even will be thrown. This was made to prevent dead locks and unnecessary events.

You should get the same behavior with every SWT widget.
--
Nicolas
Re: [CDateTime] No Selection Events? [message #595825 is a reply to message #442693] Tue, 04 August 2009 14:53 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Hi Tom,

This is a common rule in SWT : if you change a widget's property within your code, no even will be thrown. This was made to prevent dead locks and unnecessary events.

You should get the same behavior with every SWT widget.
--
Nicolas
Previous Topic:[CDateTime] No Selection Events?
Next Topic:CalendarCombo Error Handling
Goto Forum:
  


Current Time: Thu Apr 25 14:07:56 GMT 2024

Powered by FUDForum. Page generated in 0.02729 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top