Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [DataBinding] Support of Write-Only targets
[DataBinding] Support of Write-Only targets [message #493511] Mon, 26 October 2009 15:07 Go to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Hi,

I would like to perform a databinding to the text property of a FormText
widget, which is a kind-of write-only target, because their is no
natural getter.

I know how to integrate such a model into jgoodies databinding, but I'm
unaware how to realize that in jface databinding.

1) Does their exists a ready-to-use FormText text obsevable? I haven't
found one in Eclipse 3.4.1.

2) Let's assume I would define my own text observable for FormText, how
can write-only observables be defined in jface databinding in general?
As a workaround I could keep a stub String variable in the observable
which would return the last set text value, but if their exists a better
approach I would like to know of it ;-)

Thanks in advance,

Daniel
Re: [DataBinding] Support of Write-Only targets [message #493545 is a reply to message #493511] Mon, 26 October 2009 17:59 Go to previous message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
Daniel Krügler wrote:
> 1) Does their exists a ready-to-use FormText text obsevable? I haven't
> found one in Eclipse 3.4.1.

Not that I am aware of.

> 2) Let's assume I would define my own text observable for FormText, how
> can write-only observables be defined in jface databinding in general?
> As a workaround I could keep a stub String variable in the observable
> which would return the last set text value, but if their exists a better
> approach I would like to know of it ;-)

In the latest version of DataBinding (released June 2009 as part of the
Galileo release train) there is a WidgetValueProperty which you can
extend to easily create custom widget observables. Any of the built-in
subclasses should serve as an example of how to use it. Probably
TextTextProperty or StyleTextTextProperty are a good starting point.

Matthew
Previous Topic:Integrate IE browser window into my Rcp applications!
Next Topic:Actions & Parameters
Goto Forum:
  


Current Time: Thu Mar 28 22:19:28 GMT 2024

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

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

Back to the top