Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CompositeTable and Databinding
CompositeTable and Databinding [message #36744] Sun, 24 June 2007 13:44 Go to next message
Eclipse UserFriend
Originally posted by: stefan.schedl.gmx.de

Hi All,

I want to use a CompositeTable with JFace Datbinding 3.3. But there are
only dead files in the eclipse cvs
(org.eclipse.jface.examples.databinding/src/org/eclipse/
jface/examples/databinding/compositetable).

Is it possible to use JFace Databinding 3.3 with the CompositeTables?
Will you update the examples?

Thank you in advance.

Stefan Schedl
Re: CompositeTable and Databinding [message #36948 is a reply to message #36744] Sun, 01 July 2007 12:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christoph.abwesend.de

Hi,

I think this question is very interesting. I'm looking for JFace
Databinding 3.3 with CompositeTables too.
Can anyone give me an example?

Thanks!

Christoph

Stefan Schedl schrieb:
> Hi All,
>
> I want to use a CompositeTable with JFace Datbinding 3.3. But there are
> only dead files in the eclipse cvs
> (org.eclipse.jface.examples.databinding/src/org/eclipse/
> jface/examples/databinding/compositetable).
>
> Is it possible to use JFace Databinding 3.3 with the CompositeTables?
> Will you update the examples?
>
> Thank you in advance.
>
> Stefan Schedl
Re: CompositeTable and Databinding [message #38042 is a reply to message #36948] Fri, 03 August 2007 21:33 Go to previous message
Peter Centgraf is currently offline Peter CentgrafFriend
Messages: 52
Registered: July 2009
Member
CompositeTable was designed from the beginning to work with DataBinding
and the Eclipse Visual Editor. The original author/maintainer of
CompositeTable (Dave Orme) is a major contributor to both of those
projects.

The code you want is in the
org.eclipse.swt.nebula/org.eclipse.swt.nebula.widgets module.
Unfortunately, it isn't quite in a runnable state. You need to apply
several patches from CVS to get it up and running. Dave's been falling
behind with keeping CompositeTable up to date for the past few months, but
hopefully he will take care of things soon.

Once you get past the initial setup issues, CompositeTable works quite
nicely with DataBinding in practice. You basically just implement the
IRowContentProvider.refresh() method to lookup your data element by index
and bind the view and model together. This code would be exactly the same
as what you'd use to bind a basic Composite panel to a data model. In
fact, if you already have a panel to display data in a static form, you
should be able to reuse the logic for one row of the CompositeTable. This
makes it very easy to refactor a to-one relationship into a to-many
relationship.

--
Peter
Re: CompositeTable and Databinding [message #583335 is a reply to message #36744] Sun, 01 July 2007 12:24 Go to previous message
Christoph is currently offline ChristophFriend
Messages: 55
Registered: July 2009
Member
Hi,

I think this question is very interesting. I'm looking for JFace
Databinding 3.3 with CompositeTables too.
Can anyone give me an example?

Thanks!

Christoph

Stefan Schedl schrieb:
> Hi All,
>
> I want to use a CompositeTable with JFace Datbinding 3.3. But there are
> only dead files in the eclipse cvs
> (org.eclipse.jface.examples.databinding/src/org/eclipse/
> jface/examples/databinding/compositetable).
>
> Is it possible to use JFace Databinding 3.3 with the CompositeTables?
> Will you update the examples?
>
> Thank you in advance.
>
> Stefan Schedl
Re: CompositeTable and Databinding [message #583792 is a reply to message #36948] Fri, 03 August 2007 21:33 Go to previous message
Peter Centgraf is currently offline Peter CentgrafFriend
Messages: 52
Registered: July 2009
Member
CompositeTable was designed from the beginning to work with DataBinding
and the Eclipse Visual Editor. The original author/maintainer of
CompositeTable (Dave Orme) is a major contributor to both of those
projects.

The code you want is in the
org.eclipse.swt.nebula/org.eclipse.swt.nebula.widgets module.
Unfortunately, it isn't quite in a runnable state. You need to apply
several patches from CVS to get it up and running. Dave's been falling
behind with keeping CompositeTable up to date for the past few months, but
hopefully he will take care of things soon.

Once you get past the initial setup issues, CompositeTable works quite
nicely with DataBinding in practice. You basically just implement the
IRowContentProvider.refresh() method to lookup your data element by index
and bind the view and model together. This code would be exactly the same
as what you'd use to bind a basic Composite panel to a data model. In
fact, if you already have a panel to display data in a static form, you
should be able to reuse the logic for one row of the CompositeTable. This
makes it very easy to refactor a to-one relationship into a to-many
relationship.

--
Peter
Previous Topic:Formattted Text Widget
Next Topic:CDateTime bugs
Goto Forum:
  


Current Time: Sun Nov 23 14:41:12 GMT 2014

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

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