Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Customizing Date input Ridgets
Customizing Date input Ridgets [message #19503] Sat, 24 January 2009 14:37 Go to next message
Ronald Pomeroy is currently offline Ronald PomeroyFriend
Messages: 19
Registered: July 2009
Junior Member
In my application I need to provide a wide range of (legacy) input
shortcuts for dates. Users can type X for today X+1 for tomorrow etc.

What's the best way to do this in Riena?

--
Thanks,

Ron
rpomeroy at mac.com
Re: Customizing Date input Ridgets [message #19728 is a reply to message #19503] Tue, 27 January 2009 12:42 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
Ronald Pomeroy schrieb:
> In my application I need to provide a wide range of (legacy) input
> shortcuts for dates. Users can type X for today X+1 for tomorrow etc.
>
> What's the best way to do this in Riena?
>

Hi Ronald,

sorry it took us so long to come back to you. (missunderstand in the team)

Since we are internally using JFace Databinding, I dont think the answer to your question is any different than what you
would do if you use only SWT and JFace.

So what comes in my mind is that you can use an IConverter that converts the data from the widget to the model. And then
implement a convert to convert X to the current date.

So the IDateTextRidget has method setUIControlToModelConverter(IConverter converter) and that IConverter that you write
needs to contain the code to convert X to the current date ?

Does that make sense ? If not or it doesnt work, let me know

christian
Re: Customizing Date input Ridgets [message #578206 is a reply to message #19503] Tue, 27 January 2009 12:42 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 597
Registered: July 2009
Senior Member
Ronald Pomeroy schrieb:
> In my application I need to provide a wide range of (legacy) input
> shortcuts for dates. Users can type X for today X+1 for tomorrow etc.
>
> What's the best way to do this in Riena?
>

Hi Ronald,

sorry it took us so long to come back to you. (missunderstand in the team)

Since we are internally using JFace Databinding, I dont think the answer to your question is any different than what you
would do if you use only SWT and JFace.

So what comes in my mind is that you can use an IConverter that converts the data from the widget to the model. And then
implement a convert to convert X to the current date.

So the IDateTextRidget has method setUIControlToModelConverter(IConverter converter) and that IConverter that you write
needs to contain the code to convert X to the current date ?

Does that make sense ? If not or it doesnt work, let me know

christian
Previous Topic:Who is using Riena ?
Next Topic:Porting "legacy" RCP app
Goto Forum:
  


Current Time: Thu Apr 18 05:07:04 GMT 2024

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

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

Back to the top