Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [DataBinding] How to handle Date and Timestamp conversion?
[DataBinding] How to handle Date and Timestamp conversion? [message #319292] Thu, 16 August 2007 12:47 Go to next message
Eclipse UserFriend
Originally posted by: no.ddress.now

Converting up from the Eclipse 3.2 databinding.

Looking through the new UpdateValueStrategy conversion routines, do not
see how to do/specify:

java.util.Date <--> String

and

java.sql.TimeStamp <--> String

Did I miss a built-in class or is there a custom converter snippet
somewhere that shows the preferred pattern?

Thanks,
Gerald
Re: [DataBinding] How to handle Date and Timestamp conversion? [message #319491 is a reply to message #319292] Wed, 22 August 2007 17:37 Go to previous message
Eclipse UserFriend
Originally posted by: bokowski.ca.ibm.com

> Looking through the new UpdateValueStrategy conversion routines, do not
> see how to do/specify:
>
> java.util.Date <--> String

The default converters for this are DateToStringConverter and
StringToDateConverter, but these classes are not API (perhaps should be).
You will get them if you just ask for a default converter.

> java.sql.TimeStamp <--> String

We don't support this yet but would like to, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197798

Boris
Previous Topic:ant editor returns class cast exception
Next Topic:[DataBinding] Unable to bind Checkbox control to boolean property on model object.
Goto Forum:
  


Current Time: Tue Jul 22 00:56:15 EDT 2025

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

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

Back to the top