Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to setup data binding for master details page
How to setup data binding for master details page [message #327363] Wed, 16 April 2008 15:23 Go to next message
Eclipse UserFriend
Originally posted by: harald.pehl.googlemail.com

Hi,

I'm currently writing a contact manager for managing contact from different sources (http://code.google.com/p/abcom/).

In my application each contact has several addresses, emails, phone numbers, etc. I created a form based / multi page editor for the contact. On the addresses page there's a list with all addresses. By selecting one address the user can edit the address details (like street, city, zip, ...)

For the sync between the model and the master details stuff I'd like to use JFace Databinding. I found a very simple example under http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.e xamples.databinding/src/org/eclipse/jface/examples/databindi ng/snippets/Snippet010MasterDetail.java?view=markup
The example is very limited: There's just one text widget to edit the selected entry from the list. What I need is to sync several widgets with the selected address from the contacts address list.

Does someone have samples how to use data binding in combination with master detail pages and more complex model objects?

Thanks in advance!
Harald
Re: How to setup data binding for master details page [message #327379 is a reply to message #327363] Wed, 16 April 2008 21:17 Go to previous messageGo to next message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
Harald,

Take a look at Snippet 017: Table viewer with derived columns
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.e xamples.databinding/src/org/eclipse/jface/examples/databindi ng/snippets/Snippet017TableViewerWithDerivedColumns.java?vie w=markup

Matthew

Harald Pehl wrote:
> Hi,
>
> I'm currently writing a contact manager for managing contact from different sources (http://code.google.com/p/abcom/).
>
> In my application each contact has several addresses, emails, phone numbers, etc. I created a form based / multi page editor for the contact. On the addresses page there's a list with all addresses. By selecting one address the user can edit the address details (like street, city, zip, ...)
>
> For the sync between the model and the master details stuff I'd like to use JFace Databinding. I found a very simple example under http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.e xamples.databinding/src/org/eclipse/jface/examples/databindi ng/snippets/Snippet010MasterDetail.java?view=markup
> The example is very limited: There's just one text widget to edit the selected entry from the list. What I need is to sync several widgets with the selected address from the contacts address list.
>
> Does someone have samples how to use data binding in combination with master detail pages and more complex model objects?
>
> Thanks in advance!
> Harald
Re: How to setup data binding for master details page [message #327488 is a reply to message #327379] Tue, 22 April 2008 08:15 Go to previous message
Eclipse UserFriend
Originally posted by: harald.pehl.googlemail.com

Hi Matthew,

thanks for your tip! After adopting the sample code to my special needs, my master-details formeditor works!

Greetings from Munich, Germany
Harald
Previous Topic:Problem with installing Plug-in
Next Topic:SharedHeaderFormEditor with complex HeadClient and decorateFormHeading
Goto Forum:
  


Current Time: Fri Apr 26 00:19:53 GMT 2024

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

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

Back to the top