Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » New data binding framework
New data binding framework [message #111435] Sun, 27 November 2005 20:57 Go to next message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
All,

Some of you know that JFace and VE have been working together on a new
data binding framework for Eclipse. In many cases, this will let you
replace pages of SWT event handlers with code like:

dataBinding.bind(textWidget, new Property(personBean, "name"), null);

There are two talks proposed about this new exciting framework at
EclipseCon:

http://canuck.gda.itesm.mx/eclipsezilla/show_bug.cgi?id=271

by myself, and

http://canuck.gda.itesm.mx/eclipsezilla/show_bug.cgi?id=89

by Boris Bokowski, a member of the JFace team

If you want to hear about this at EclipseCon, please vote today for one
or more of these submissions!


Best regards,

Dave Orme

--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: New data binding framework [message #111533 is a reply to message #111435] Tue, 29 November 2005 19:55 Go to previous messageGo to next message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello David,

> All,
>
> Some of you know that JFace and VE have been working together on a new
> data binding framework for Eclipse. In many cases, this will let you
> replace pages of SWT event handlers with code like:
>
> dataBinding.bind(textWidget, new Property(personBean, "name"),
> null);
>

The Coconut Palm Software site (http://www.coconut-palm-software.com/the_visual_editor/)

says that databinding in preview form can be found in latest milestones.
The question is: is there any way to use these classes in application
written using Eclipse 3.1.1? I mean is it possible to just take existing
Eclipse 3.1.1 based app, add references to some .jar archives and start
using databinding?

Thank you in advance for answer

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework [message #111559 is a reply to message #111533] Wed, 30 November 2005 02:56 Go to previous messageGo to next message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
Grzegorz Zieliński wrote:
> Hello David,
>
>> All,
>>
>> Some of you know that JFace and VE have been working together on a new
>> data binding framework for Eclipse. In many cases, this will let you
>> replace pages of SWT event handlers with code like:
>>
>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>> null);
>>
>
> The Coconut Palm Software site
> (http://www.coconut-palm-software.com/the_visual_editor/)
> says that databinding in preview form can be found in latest milestones.
> The question is: is there any way to use these classes in application
> written using Eclipse 3.1.1? I mean is it possible to just take existing
> Eclipse 3.1.1 based app, add references to some .jar archives and start
> using databinding?

Officially, I don't think we've decided. Right now you can do it, but
we're talking about adding some dependencies on one of the new plugins
in 3.2, and I don't know how that discussion will turn out.

If you think it's important to keep backward compatibility with 3.1.1,
please file a bug report against Platform/UI with [DataBinding] in the
summary and we'll discuss it there.


Best regards,

Dave Orme

--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: New data binding framework [message #111925 is a reply to message #111559] Wed, 30 November 2005 12:44 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
David J. Orme wrote:

> Grzegorz Zieliński wrote:
>> Hello David,
>>
>>> All,
>>>
>>> Some of you know that JFace and VE have been working together on a new
>>> data binding framework for Eclipse. In many cases, this will let you
>>> replace pages of SWT event handlers with code like:
>>>
>>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>>> null);
>>>
>>
>> The Coconut Palm Software site
>> (http://www.coconut-palm-software.com/the_visual_editor/)
>> says that databinding in preview form can be found in latest milestones.
>> The question is: is there any way to use these classes in application
>> written using Eclipse 3.1.1? I mean is it possible to just take existing
>> Eclipse 3.1.1 based app, add references to some .jar archives and start
>> using databinding?
>
> Officially, I don't think we've decided. Right now you can do it, but
> we're talking about adding some dependencies on one of the new plugins
> in 3.2, and I don't know how that discussion will turn out.
>
> If you think it's important to keep backward compatibility with 3.1.1,
> please file a bug report against Platform/UI with [DataBinding] in the
> summary and we'll discuss it there.
>
>
> Best regards,
>
> Dave Orme
>
David,
I do it : https://bugs.eclipse.org/bugs/show_bug.cgi?id=118614
is there any geting started document for databinding or
how i can execute examples ?

Thanks
Re: New data binding framework [message #111929 is a reply to message #111559] Wed, 30 November 2005 11:58 Go to previous messageGo to next message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello David,

> Grzegorz Zieliński wrote:
>
>> Hello David,
>>
>>> All,
>>>
>>> Some of you know that JFace and VE have been working together on a
>>> new data binding framework for Eclipse. In many cases, this will
>>> let you replace pages of SWT event handlers with code like:
>>>
>>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>>> null);
>>>
>> The Coconut Palm Software site
>> (http://www.coconut-palm-software.com/the_visual_editor/)
>> says that databinding in preview form can be found in latest
>> milestones.
>> The question is: is there any way to use these classes in application
>> written using Eclipse 3.1.1? I mean is it possible to just take
>> existing
>> Eclipse 3.1.1 based app, add references to some .jar archives and
>> start
>> using databinding?
> Officially, I don't think we've decided. Right now you can do it, but
> we're talking about adding some dependencies on one of the new plugins
> in 3.2, and I don't know how that discussion will turn out.
>
> If you think it's important to keep backward compatibility with 3.1.1,
> please file a bug report against Platform/UI with [DataBinding] in the
> summary and we'll discuss it there.
>
> Best regards,
>
> Dave Orme
>

No, the backward compatibility with 3.1.1 is not necessary in this case.
I just need to finish the project as soon as possible, and I can't wait
until February for stable release. I've just downloaded sources from
CVS and I'm going to try to use them in my app.

Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework [message #111954 is a reply to message #111559] Wed, 30 November 2005 15:14 Go to previous messageGo to next message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello David,

> Grzegorz Zieliński wrote:
>
>> Hello David,
>>
>>> All,
>>>
>>> Some of you know that JFace and VE have been working together on a
>>> new data binding framework for Eclipse. In many cases, this will
>>> let you replace pages of SWT event handlers with code like:
>>>
>>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>>> null);
>>>
>> The Coconut Palm Software site
>> (http://www.coconut-palm-software.com/the_visual_editor/)
>> says that databinding in preview form can be found in latest
>> milestones.
>> The question is: is there any way to use these classes in application
>> written using Eclipse 3.1.1? I mean is it possible to just take
>> existing
>> Eclipse 3.1.1 based app, add references to some .jar archives and
>> start
>> using databinding?
> Officially, I don't think we've decided. Right now you can do it, but
> we're talking about adding some dependencies on one of the new plugins
> in 3.2, and I don't know how that discussion will turn out.
>
> If you think it's important to keep backward compatibility with 3.1.1,
> please file a bug report against Platform/UI with [DataBinding] in the
> summary and we'll discuss it there.
>
> Best regards,
>
> Dave Orme
>

I've imported databinding packages from CVS. But when I try to start any
example (e.g. I try to execute "run as java bean" on TextBinding.java from
org.eclipse.jface.examples.databinding.javabean package) I get this:

Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.ui.part.WorkbenchPart
at org.eclipse.ve.internal.java.vce.launcher.remotevm.RCPLaunch er.supportsLaunching(RCPLauncher.java:40)
at org.eclipse.ve.internal.java.vce.launcher.remotevm.JavaBeans Launcher.main(JavaBeansLauncher.java:71)

What's wrong?

Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework [message #111988 is a reply to message #111559] Wed, 30 November 2005 19:53 Go to previous messageGo to next message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello David,

> Grzegorz Zieliński wrote:
>
>> Hello David,
>>
>>> All,
>>>
>>> Some of you know that JFace and VE have been working together on a
>>> new data binding framework for Eclipse. In many cases, this will
>>> let you replace pages of SWT event handlers with code like:
>>>
>>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>>> null);
>>>
>> The Coconut Palm Software site
>> (http://www.coconut-palm-software.com/the_visual_editor/)
>> says that databinding in preview form can be found in latest
>> milestones.
>> The question is: is there any way to use these classes in application
>> written using Eclipse 3.1.1? I mean is it possible to just take
>> existing
>> Eclipse 3.1.1 based app, add references to some .jar archives and
>> start
>> using databinding?
> Officially, I don't think we've decided. Right now you can do it, but
> we're talking about adding some dependencies on one of the new plugins
> in 3.2, and I don't know how that discussion will turn out.
>
> If you think it's important to keep backward compatibility with 3.1.1,
> please file a bug report against Platform/UI with [DataBinding] in the
> summary and we'll discuss it there.
>
> Best regards,
>
> Dave Orme
>

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 [message #112194 is a reply to message #111954] Thu, 01 December 2005 21:37 Go to previous messageGo to next message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
Grzegorz Zieliński wrote:
> Hello David,
>
>> Grzegorz Zieliński wrote:
>>
>>> Hello David,
>>>
>>>> All,
>>>>
>>>> Some of you know that JFace and VE have been working together on a
>>>> new data binding framework for Eclipse. In many cases, this will
>>>> let you replace pages of SWT event handlers with code like:
>>>>
>>>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>>>> null);
>>>>
>>> The Coconut Palm Software site
>>> (http://www.coconut-palm-software.com/the_visual_editor/)
>>> says that databinding in preview form can be found in latest
>>> milestones.
>>> The question is: is there any way to use these classes in application
>>> written using Eclipse 3.1.1? I mean is it possible to just take
>>> existing
>>> Eclipse 3.1.1 based app, add references to some .jar archives and
>>> start
>>> using databinding?
>>
>> Officially, I don't think we've decided. Right now you can do it, but
>> we're talking about adding some dependencies on one of the new plugins
>> in 3.2, and I don't know how that discussion will turn out.
>>
>> If you think it's important to keep backward compatibility with 3.1.1,
>> please file a bug report against Platform/UI with [DataBinding] in the
>> summary and we'll discuss it there.
>>
>> Best regards,
>>
>> Dave Orme
>>
>
> I've imported databinding packages from CVS. But when I try to start any
> example (e.g. I try to execute "run as java bean" on TextBinding.java
> from org.eclipse.jface.examples.databinding.javabean package) I get this:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org.eclipse.ui.part.WorkbenchPart
> at
> org.eclipse.ve.internal.java.vce.launcher.remotevm.RCPLaunch er.supportsLaunching(RCPLauncher.java:40)
>
> at
> org.eclipse.ve.internal.java.vce.launcher.remotevm.JavaBeans Launcher.main(JavaBeansLauncher.java:71)
>
>
> What's wrong?

Try: "Run as SWT Application"


Best,

Dave Orme
--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: New data binding framework [message #112207 is a reply to message #111988] Thu, 01 December 2005 21:39 Go to previous messageGo to next message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
Grzegorz Zieliński wrote:
> 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?

That would be very hard to say without seeing your code. I'm doing this
successfully on a real project right now, and as far as I can tell we
have no really fundamental bugs like this.

But you might have found one. :-)

So if you could create a small example that illustrates the problem, and
attach it to a bug in Bugzilla, I'll take a look.

Best regards,

Dave Orme

--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: New data binding framework [message #112218 is a reply to message #112207] Thu, 01 December 2005 21:41 Go to previous messageGo to next message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
In the future, please report data binding issues on the
org.eclipse.platform.rcp news group, with a subject that starts with
[DataBinding].

Thanks,

Dave Orme

--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: New data binding framework [message #112231 is a reply to message #112207] Thu, 01 December 2005 22:33 Go to previous messageGo to next message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello David,

> Grzegorz Zieliński wrote:
>
>> 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?
> That would be very hard to say without seeing your code. I'm doing
> this successfully on a real project right now, and as far as I can
> tell we have no really fundamental bugs like this.
>
> But you might have found one. :-)
>
> So if you could create a small example that illustrates the problem,
> and attach it to a bug in Bugzilla, I'll take a look.
>
> Best regards,
>
> Dave Orme
>

It's not my code. It's the javabean example from CVS.
I can't run this example "as SWT App", 'cause it has no main() procedure
etc.
It is bean (nomen omen)... :)

Here is the ONLY part I've changed to run it:

private Method getGetMethod() {
if (getMethod != null)
return getMethod;
try {
String getMethodName = getMethodName(propertyName);
//Method getMethod = object.getClass().getMethod(getMethodName, null);
return getMethod = object.getClass().getMethod(getMethodName, null);
} catch (NoSuchMethodException e) {
}
return getMethod;
}

You can see the commented-out line and one added below.
That's all.
And now it runs, but... doesn't work...

I can drop it into bugzilla, but maybe you can answer me here?

Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework [message #112653 is a reply to message #112231] Thu, 08 December 2005 04:15 Go to previous message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
I replied to this over on e.platform.rcp. Thanks.


Dave

Grzegorz Zieliński wrote:
> Hello David,
>
>> Grzegorz Zieliński wrote:
>>
>>> 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?
>>
>> That would be very hard to say without seeing your code. I'm doing
>> this successfully on a real project right now, and as far as I can
>> tell we have no really fundamental bugs like this.
>>
>> But you might have found one. :-)
>>
>> So if you could create a small example that illustrates the problem,
>> and attach it to a bug in Bugzilla, I'll take a look.
>>
>> Best regards,
>>
>> Dave Orme
>>
>
> It's not my code. It's the javabean example from CVS.
> I can't run this example "as SWT App", 'cause it has no main() procedure
> etc. It is bean (nomen omen)... :)
>
> Here is the ONLY part I've changed to run it:
>
> private Method getGetMethod() {
> if (getMethod != null)
> return getMethod;
> try {
> String getMethodName = getMethodName(propertyName);
> //Method getMethod = object.getClass().getMethod(getMethodName,
> null);
> return getMethod = object.getClass().getMethod(getMethodName,
> null);
> } catch (NoSuchMethodException e) {
> }
> return getMethod;
> }
>
> You can see the commented-out line and one added below.
> That's all.
> And now it runs, but... doesn't work...
>
> I can drop it into bugzilla, but maybe you can answer me here?
>
> Best regards,
>
> Grzegorz Zieliński
> g_zielinski<at>intechion.pl
>
>


--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: New data binding framework [message #611371 is a reply to message #111435] Tue, 29 November 2005 19:55 Go to previous message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello David,

> All,
>
> Some of you know that JFace and VE have been working together on a new
> data binding framework for Eclipse. In many cases, this will let you
> replace pages of SWT event handlers with code like:
>
> dataBinding.bind(textWidget, new Property(personBean, "name"),
> null);
>

The Coconut Palm Software site (http://www.coconut-palm-software.com/the_visual_editor/)

says that databinding in preview form can be found in latest milestones.
The question is: is there any way to use these classes in application
written using Eclipse 3.1.1? I mean is it possible to just take existing
Eclipse 3.1.1 based app, add references to some .jar archives and start
using databinding?

Thank you in advance for answer

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework [message #611373 is a reply to message #111533] Wed, 30 November 2005 02:56 Go to previous message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
Grzegorz Zieliński wrote:
> Hello David,
>
>> All,
>>
>> Some of you know that JFace and VE have been working together on a new
>> data binding framework for Eclipse. In many cases, this will let you
>> replace pages of SWT event handlers with code like:
>>
>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>> null);
>>
>
> The Coconut Palm Software site
> (http://www.coconut-palm-software.com/the_visual_editor/)
> says that databinding in preview form can be found in latest milestones.
> The question is: is there any way to use these classes in application
> written using Eclipse 3.1.1? I mean is it possible to just take existing
> Eclipse 3.1.1 based app, add references to some .jar archives and start
> using databinding?

Officially, I don't think we've decided. Right now you can do it, but
we're talking about adding some dependencies on one of the new plugins
in 3.2, and I don't know how that discussion will turn out.

If you think it's important to keep backward compatibility with 3.1.1,
please file a bug report against Platform/UI with [DataBinding] in the
summary and we'll discuss it there.


Best regards,

Dave Orme

--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: New data binding framework [message #611378 is a reply to message #111559] Wed, 30 November 2005 12:44 Go to previous message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
David J. Orme wrote:

> Grzegorz Zieliński wrote:
>> Hello David,
>>
>>> All,
>>>
>>> Some of you know that JFace and VE have been working together on a new
>>> data binding framework for Eclipse. In many cases, this will let you
>>> replace pages of SWT event handlers with code like:
>>>
>>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>>> null);
>>>
>>
>> The Coconut Palm Software site
>> (http://www.coconut-palm-software.com/the_visual_editor/)
>> says that databinding in preview form can be found in latest milestones.
>> The question is: is there any way to use these classes in application
>> written using Eclipse 3.1.1? I mean is it possible to just take existing
>> Eclipse 3.1.1 based app, add references to some .jar archives and start
>> using databinding?
>
> Officially, I don't think we've decided. Right now you can do it, but
> we're talking about adding some dependencies on one of the new plugins
> in 3.2, and I don't know how that discussion will turn out.
>
> If you think it's important to keep backward compatibility with 3.1.1,
> please file a bug report against Platform/UI with [DataBinding] in the
> summary and we'll discuss it there.
>
>
> Best regards,
>
> Dave Orme
>
David,
I do it : https://bugs.eclipse.org/bugs/show_bug.cgi?id=118614
is there any geting started document for databinding or
how i can execute examples ?

Thanks
Re: New data binding framework [message #611379 is a reply to message #111559] Wed, 30 November 2005 11:58 Go to previous message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello David,

> Grzegorz Zieliński wrote:
>
>> Hello David,
>>
>>> All,
>>>
>>> Some of you know that JFace and VE have been working together on a
>>> new data binding framework for Eclipse. In many cases, this will
>>> let you replace pages of SWT event handlers with code like:
>>>
>>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>>> null);
>>>
>> The Coconut Palm Software site
>> (http://www.coconut-palm-software.com/the_visual_editor/)
>> says that databinding in preview form can be found in latest
>> milestones.
>> The question is: is there any way to use these classes in application
>> written using Eclipse 3.1.1? I mean is it possible to just take
>> existing
>> Eclipse 3.1.1 based app, add references to some .jar archives and
>> start
>> using databinding?
> Officially, I don't think we've decided. Right now you can do it, but
> we're talking about adding some dependencies on one of the new plugins
> in 3.2, and I don't know how that discussion will turn out.
>
> If you think it's important to keep backward compatibility with 3.1.1,
> please file a bug report against Platform/UI with [DataBinding] in the
> summary and we'll discuss it there.
>
> Best regards,
>
> Dave Orme
>

No, the backward compatibility with 3.1.1 is not necessary in this case.
I just need to finish the project as soon as possible, and I can't wait
until February for stable release. I've just downloaded sources from
CVS and I'm going to try to use them in my app.

Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework [message #611385 is a reply to message #111559] Wed, 30 November 2005 15:14 Go to previous message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello David,

> Grzegorz Zieliński wrote:
>
>> Hello David,
>>
>>> All,
>>>
>>> Some of you know that JFace and VE have been working together on a
>>> new data binding framework for Eclipse. In many cases, this will
>>> let you replace pages of SWT event handlers with code like:
>>>
>>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>>> null);
>>>
>> The Coconut Palm Software site
>> (http://www.coconut-palm-software.com/the_visual_editor/)
>> says that databinding in preview form can be found in latest
>> milestones.
>> The question is: is there any way to use these classes in application
>> written using Eclipse 3.1.1? I mean is it possible to just take
>> existing
>> Eclipse 3.1.1 based app, add references to some .jar archives and
>> start
>> using databinding?
> Officially, I don't think we've decided. Right now you can do it, but
> we're talking about adding some dependencies on one of the new plugins
> in 3.2, and I don't know how that discussion will turn out.
>
> If you think it's important to keep backward compatibility with 3.1.1,
> please file a bug report against Platform/UI with [DataBinding] in the
> summary and we'll discuss it there.
>
> Best regards,
>
> Dave Orme
>

I've imported databinding packages from CVS. But when I try to start any
example (e.g. I try to execute "run as java bean" on TextBinding.java from
org.eclipse.jface.examples.databinding.javabean package) I get this:

Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.ui.part.WorkbenchPart
at org.eclipse.ve.internal.java.vce.launcher.remotevm.RCPLaunch er.supportsLaunching(RCPLauncher.java:40)
at org.eclipse.ve.internal.java.vce.launcher.remotevm.JavaBeans Launcher.main(JavaBeansLauncher.java:71)

What's wrong?

Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework [message #611398 is a reply to message #111559] Wed, 30 November 2005 19:53 Go to previous message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello David,

> Grzegorz Zieliński wrote:
>
>> Hello David,
>>
>>> All,
>>>
>>> Some of you know that JFace and VE have been working together on a
>>> new data binding framework for Eclipse. In many cases, this will
>>> let you replace pages of SWT event handlers with code like:
>>>
>>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>>> null);
>>>
>> The Coconut Palm Software site
>> (http://www.coconut-palm-software.com/the_visual_editor/)
>> says that databinding in preview form can be found in latest
>> milestones.
>> The question is: is there any way to use these classes in application
>> written using Eclipse 3.1.1? I mean is it possible to just take
>> existing
>> Eclipse 3.1.1 based app, add references to some .jar archives and
>> start
>> using databinding?
> Officially, I don't think we've decided. Right now you can do it, but
> we're talking about adding some dependencies on one of the new plugins
> in 3.2, and I don't know how that discussion will turn out.
>
> If you think it's important to keep backward compatibility with 3.1.1,
> please file a bug report against Platform/UI with [DataBinding] in the
> summary and we'll discuss it there.
>
> Best regards,
>
> Dave Orme
>

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 [message #611433 is a reply to message #111954] Thu, 01 December 2005 21:37 Go to previous message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
Grzegorz Zieliński wrote:
> Hello David,
>
>> Grzegorz Zieliński wrote:
>>
>>> Hello David,
>>>
>>>> All,
>>>>
>>>> Some of you know that JFace and VE have been working together on a
>>>> new data binding framework for Eclipse. In many cases, this will
>>>> let you replace pages of SWT event handlers with code like:
>>>>
>>>> dataBinding.bind(textWidget, new Property(personBean, "name"),
>>>> null);
>>>>
>>> The Coconut Palm Software site
>>> (http://www.coconut-palm-software.com/the_visual_editor/)
>>> says that databinding in preview form can be found in latest
>>> milestones.
>>> The question is: is there any way to use these classes in application
>>> written using Eclipse 3.1.1? I mean is it possible to just take
>>> existing
>>> Eclipse 3.1.1 based app, add references to some .jar archives and
>>> start
>>> using databinding?
>>
>> Officially, I don't think we've decided. Right now you can do it, but
>> we're talking about adding some dependencies on one of the new plugins
>> in 3.2, and I don't know how that discussion will turn out.
>>
>> If you think it's important to keep backward compatibility with 3.1.1,
>> please file a bug report against Platform/UI with [DataBinding] in the
>> summary and we'll discuss it there.
>>
>> Best regards,
>>
>> Dave Orme
>>
>
> I've imported databinding packages from CVS. But when I try to start any
> example (e.g. I try to execute "run as java bean" on TextBinding.java
> from org.eclipse.jface.examples.databinding.javabean package) I get this:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org.eclipse.ui.part.WorkbenchPart
> at
> org.eclipse.ve.internal.java.vce.launcher.remotevm.RCPLaunch er.supportsLaunching(RCPLauncher.java:40)
>
> at
> org.eclipse.ve.internal.java.vce.launcher.remotevm.JavaBeans Launcher.main(JavaBeansLauncher.java:71)
>
>
> What's wrong?

Try: "Run as SWT Application"


Best,

Dave Orme
--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: New data binding framework [message #611435 is a reply to message #111988] Thu, 01 December 2005 21:39 Go to previous message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
Grzegorz Zieliński wrote:
> 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?

That would be very hard to say without seeing your code. I'm doing this
successfully on a real project right now, and as far as I can tell we
have no really fundamental bugs like this.

But you might have found one. :-)

So if you could create a small example that illustrates the problem, and
attach it to a bug in Bugzilla, I'll take a look.

Best regards,

Dave Orme

--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: New data binding framework [message #611437 is a reply to message #112207] Thu, 01 December 2005 21:41 Go to previous message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
In the future, please report data binding issues on the
org.eclipse.platform.rcp news group, with a subject that starts with
[DataBinding].

Thanks,

Dave Orme

--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: New data binding framework [message #611438 is a reply to message #112207] Thu, 01 December 2005 22:33 Go to previous message
Grzegorz Zieliñski is currently offline Grzegorz ZieliñskiFriend
Messages: 41
Registered: July 2009
Member
Hello David,

> Grzegorz Zieliński wrote:
>
>> 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?
> That would be very hard to say without seeing your code. I'm doing
> this successfully on a real project right now, and as far as I can
> tell we have no really fundamental bugs like this.
>
> But you might have found one. :-)
>
> So if you could create a small example that illustrates the problem,
> and attach it to a bug in Bugzilla, I'll take a look.
>
> Best regards,
>
> Dave Orme
>

It's not my code. It's the javabean example from CVS.
I can't run this example "as SWT App", 'cause it has no main() procedure
etc.
It is bean (nomen omen)... :)

Here is the ONLY part I've changed to run it:

private Method getGetMethod() {
if (getMethod != null)
return getMethod;
try {
String getMethodName = getMethodName(propertyName);
//Method getMethod = object.getClass().getMethod(getMethodName, null);
return getMethod = object.getClass().getMethod(getMethodName, null);
} catch (NoSuchMethodException e) {
}
return getMethod;
}

You can see the commented-out line and one added below.
That's all.
And now it runs, but... doesn't work...

I can drop it into bugzilla, but maybe you can answer me here?

Best regards,

Grzegorz Zieliński
g_zielinski<at>intechion.pl
Re: New data binding framework [message #611504 is a reply to message #112231] Thu, 08 December 2005 04:15 Go to previous message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
I replied to this over on e.platform.rcp. Thanks.


Dave

Grzegorz Zieliński wrote:
> Hello David,
>
>> Grzegorz Zieliński wrote:
>>
>>> 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?
>>
>> That would be very hard to say without seeing your code. I'm doing
>> this successfully on a real project right now, and as far as I can
>> tell we have no really fundamental bugs like this.
>>
>> But you might have found one. :-)
>>
>> So if you could create a small example that illustrates the problem,
>> and attach it to a bug in Bugzilla, I'll take a look.
>>
>> Best regards,
>>
>> Dave Orme
>>
>
> It's not my code. It's the javabean example from CVS.
> I can't run this example "as SWT App", 'cause it has no main() procedure
> etc. It is bean (nomen omen)... :)
>
> Here is the ONLY part I've changed to run it:
>
> private Method getGetMethod() {
> if (getMethod != null)
> return getMethod;
> try {
> String getMethodName = getMethodName(propertyName);
> //Method getMethod = object.getClass().getMethod(getMethodName,
> null);
> return getMethod = object.getClass().getMethod(getMethodName,
> null);
> } catch (NoSuchMethodException e) {
> }
> return getMethod;
> }
>
> You can see the commented-out line and one added below.
> That's all.
> And now it runs, but... doesn't work...
>
> I can drop it into bugzilla, but maybe you can answer me here?
>
> Best regards,
>
> Grzegorz Zieliński
> g_zielinski<at>intechion.pl
>
>


--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Previous Topic:Can I Modify the template for code generation?
Next Topic:VisualAge migration
Goto Forum:
  


Current Time: Fri Apr 26 23:06:57 GMT 2024

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

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

Back to the top