Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 127349

Summary: [DataBinding] Allow derived values in table columns
Product: [Eclipse Project] Platform Reporter: Boris Bokowski <bokowski>
Component: UIAssignee: Boris Bokowski <bokowski>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 CC: abuehler, bondtnt, Konstantin.Scheglov, mn, nicolas.gouy, peter
Version: 3.2Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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 ***