Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » New data binding framework - is it working?
New data binding framework - is it working? [message #112139] Thu, 01 December 2005 19:15 Go to next message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hi.

Does anyone have this framework up and working? 'Cause I can't make it work...
:/

I've copied the org.eclipse.jface.examples.databinding.javabean classes
into my project, in order to be able to play with them safely.
But they wouldn't work. I tried to debug, and found problem in
getGetMethod() method of JavaBeanUpdatable() class (look at the try
statement - it has local variable Method getMethod so it will never
return value.
I fixed this, and it runs but... still doesn't work. I mean: I have window
with labels and text boxes, but changing value in one box doesn't
change value in other box. Why?

Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework - is it working? [message #112157 is a reply to message #112139] Thu, 01 December 2005 19:59 Go to previous messageGo to next message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hi.

I think I've found problem/error in Eclipse databinding framework,
at least in javabean example.
This is what I've posted on eclipse.tools.ve newsgroup:

---
I've copied the org.eclipse.jface.examples.databinding.javabean classes
into my project, in order to be able to play with them safely.
But they wouldn't work. I tried to debug, and found problem in
getGetMethod() method of JavaBeanUpdatable() class (look at the try
statement - it has local variable Method getMethod so it will never
return value.
I fixed this, and it runs but... still doesn't work. I mean: I have window
with labels and text boxes, but changing value in one box doesn't
change value in other box. Why?
---

I've tried to debug a little, and it seems that in mentioned example
there are weird events in typical scenario, e.g. one changes first
name in one of text boxes. This is what happens:
1. I add "xx" to first name, so it is now "Johnxx".
2. I press tab, so change is noticed by data binding objects.
3. These objects update the "person" object, so its firstName
property has also value "Johnxx".
4. Then something weird happens - instead of updating second text
box to reflect new model state, the data binding objects update
model to reflect second textbox state.
5. So now we have: first text box with text "Johnxx", model with
property value "John" and second text box with text "John".

Does anyone know why the framework doesn't work?


Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework - is it working? [message #112273 is a reply to message #112139] Fri, 02 December 2005 08:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

Grzegorz Zieliński wrote:

> Does anyone have this framework up and working? 'Cause I can't make it
> work... :/

Yes, data binding works in my simple test cases.

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: New data binding framework - is it working? [message #112321 is a reply to message #112273] Sat, 03 December 2005 01:33 Go to previous messageGo to next message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello Konstantin,

> Grzegorz Zieliński wrote:
>
>> Does anyone have this framework up and working? 'Cause I can't make
>> it work... :/
>>
> Yes, data binding works in my simple test cases.
>

Could you send me these test cases? Maybe this would allow me to find what's
wrong...

Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework - is it working? [message #112370 is a reply to message #112321] Mon, 05 December 2005 11:35 Go to previous message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

Grzegorz Zieliński wrote:

>>> Does anyone have this framework up and working? 'Cause I can't make
>>> it work... :/
>>>
>> Yes, data binding works in my simple test cases.
>>
>
> Could you send me these test cases? Maybe this would allow me to find
> what's wrong...

See in your e-mail...

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: New data binding framework - is it working? [message #611428 is a reply to message #112139] Thu, 01 December 2005 19:59 Go to previous message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hi.

I think I've found problem/error in Eclipse databinding framework,
at least in javabean example.
This is what I've posted on eclipse.tools.ve newsgroup:

---
I've copied the org.eclipse.jface.examples.databinding.javabean classes
into my project, in order to be able to play with them safely.
But they wouldn't work. I tried to debug, and found problem in
getGetMethod() method of JavaBeanUpdatable() class (look at the try
statement - it has local variable Method getMethod so it will never
return value.
I fixed this, and it runs but... still doesn't work. I mean: I have window
with labels and text boxes, but changing value in one box doesn't
change value in other box. Why?
---

I've tried to debug a little, and it seems that in mentioned example
there are weird events in typical scenario, e.g. one changes first
name in one of text boxes. This is what happens:
1. I add "xx" to first name, so it is now "Johnxx".
2. I press tab, so change is noticed by data binding objects.
3. These objects update the "person" object, so its firstName
property has also value "Johnxx".
4. Then something weird happens - instead of updating second text
box to reflect new model state, the data binding objects update
model to reflect second textbox state.
5. So now we have: first text box with text "Johnxx", model with
property value "John" and second text box with text "John".

Does anyone know why the framework doesn't work?


Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework - is it working? [message #611444 is a reply to message #112139] Fri, 02 December 2005 08:15 Go to previous message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Grzegorz Zieliński wrote:

> Does anyone have this framework up and working? 'Cause I can't make it
> work... :/

Yes, data binding works in my simple test cases.

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)


Konstantin Scheglov,
Google, Inc.
Re: New data binding framework - is it working? [message #611453 is a reply to message #112273] Sat, 03 December 2005 01:33 Go to previous message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello Konstantin,

> Grzegorz Zieliński wrote:
>
>> Does anyone have this framework up and working? 'Cause I can't make
>> it work... :/
>>
> Yes, data binding works in my simple test cases.
>

Could you send me these test cases? Maybe this would allow me to find what's
wrong...

Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework - is it working? [message #611461 is a reply to message #112321] Mon, 05 December 2005 11:35 Go to previous message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Grzegorz Zieliński wrote:

>>> Does anyone have this framework up and working? 'Cause I can't make
>>> it work... :/
>>>
>> Yes, data binding works in my simple test cases.
>>
>
> Could you send me these test cases? Maybe this would allow me to find
> what's wrong...

See in your e-mail...

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)


Konstantin Scheglov,
Google, Inc.
Previous Topic:Will VE have VAJ like event connecting feature?
Next Topic:How to make styledText "visible" in other files.
Goto Forum:
  


Current Time: Fri Apr 26 04:35:26 GMT 2024

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

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

Back to the top