Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » [Databinding] use for SWTObservables.observe(Text)
[Databinding] use for SWTObservables.observe(Text) [message #493255] Fri, 23 October 2009 23:11 Go to next message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
I noticed that you now (as of 1.3) can call SWTObservables.observe(text) for
a Text widget. This misled me into thinking that I could use it as a
replacement for the more verbose SWTObservables.observe(text, SWT.Modify)
that I *always* use to bind to a text widget. But in fact, the one
parameter method doesn't do what I would expect and no change events get
fired. What is it's purpose? I can see that a stale event gets fired on
SWT.Modify, but when would I bind to a Text widget stale event?

Thanks,
Will
Re: [Databinding] use for SWTObservables.observe(Text) [message #493547 is a reply to message #493255] Mon, 26 October 2009 18:19 Go to previous messageGo to next message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
Will Horn wrote:
> I noticed that you now (as of 1.3) can call SWTObservables.observe(text)
> for a Text widget. This misled me into thinking that I could use it as
> a replacement for the more verbose SWTObservables.observe(text,
> SWT.Modify) that I *always* use to bind to a text widget. But in fact,
> the one parameter method doesn't do what I would expect and no change
> events get fired. What is it's purpose? I can see that a stale event
> gets fired on SWT.Modify, but when would I bind to a Text widget stale
> event?
>
> Thanks,
> Will

SWTObservables.observeText(textWidget) is equivalent to
SWTObservables.observeText(textWidget, SWT.NONE).

Matthew
Re: [Databinding] use for SWTObservables.observe(Text) [message #493559 is a reply to message #493547] Mon, 26 October 2009 21:53 Go to previous messageGo to next message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
"Matthew Hall" <matthall@woodcraftmill.com> wrote in message
news:hc4p8g$8mg$1@build.eclipse.org...
> Will Horn wrote:
>> I noticed that you now (as of 1.3) can call SWTObservables.observe(text)
>> for a Text widget. This misled me into thinking that I could use it as a
>> replacement for the more verbose SWTObservables.observe(text, SWT.Modify)
>> that I *always* use to bind to a text widget. But in fact, the one
>> parameter method doesn't do what I would expect and no change events get
>> fired. What is it's purpose? I can see that a stale event gets fired on
>> SWT.Modify, but when would I bind to a Text widget stale event?
> SWTObservables.observeText(textWidget) is equivalent to
> SWTObservables.observeText(textWidget, SWT.NONE).
What is the use case for that?
Re: [Databinding] use for SWTObservables.observe(Text) [message #493653 is a reply to message #493559] Tue, 27 October 2009 13:32 Go to previous message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
Will Horn wrote:
> What is the use case for that?

See bug 248621 [1]

Matthew

[1] https://bugs.eclipse.org/248621
Previous Topic:Content Assist, Focus within the brackets, JFace
Next Topic:[Databinding] observable disposal best practices
Goto Forum:
  


Current Time: Fri Apr 26 00:01:26 GMT 2024

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

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

Back to the top