Bug 127349 - [DataBinding] Allow derived values in table columns
Summary: [DataBinding] Allow derived values in table columns
Status: RESOLVED DUPLICATE of bug 196785
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-02-10 17:59 EST by Boris Bokowski CLA
Modified: 2007-09-27 10:31 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Bokowski CLA 2006-02-10 17:59:24 EST
From the newsgroup:

I was playing with current(07.02.2006) DataBinding snapshot from CVS. Now 
I`m looking at such a UserCase:

class Person {
    private String name;
    ...
    private Location location;

    // getters / setters here
}

class Location {
   private String name;

   // Get/Set here
}

I`ve looked at this code from 
"org.eclipse.jface.examples.databinding.nestedselection.TestMasterDetail.java"
and have a question

TableViewer peopleViewer = new TableViewer(personsTable);
dbc.bind(new Property(peopleViewer, ViewersProperties.CONTENT),
new TableModelDescription(
                    new Property(model, "personList"),
    new Object[] { "name", "state" }), 
         null);

How bindig should be constructed for my Use Case. I`ve tried to put 
"location.name" instead of "state". That doesn`t help.

Possible solutions?
Comment 1 Boris Bokowski CLA 2006-02-10 18:00:28 EST
We are working on a solution for this.
Comment 2 Peter Centgraf CLA 2007-02-27 16:54:17 EST
The code I just added to bug 127381 might be helpful for those who need a workaround ASAP.
Comment 3 Boris Bokowski CLA 2007-09-27 10:31:02 EDT

*** This bug has been marked as a duplicate of bug 196785 ***