Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [DataBinding] MasterDetails: Table + Text
[DataBinding] MasterDetails: Table + Text [message #443951] Tue, 07 February 2006 13:23 Go to next message
Andrey Bondarenko is currently offline Andrey BondarenkoFriend
Messages: 84
Registered: July 2009
Member
Hi everybody!

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.TestM asterDetail.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?
Re: [DataBinding] MasterDetails: Table + Text [message #444225 is a reply to message #443951] Fri, 10 February 2006 23:03 Go to previous message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
Thanks for the usecase. I have entered a bug for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=127349

Boris

"Andrey Bondarenko" <noban@yandex.ru> wrote in message
news:e317596d92b44b93ee24c6bc86fc5ad4$1@www.eclipse.org...
> Hi everybody!
>
> 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.TestM asterDetail.jav
a"
> 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?
>
Previous Topic:Displaying an EMF model inside a TreeViewer
Next Topic:Problem with IAdapter recoginzing class equality
Goto Forum:
  


Current Time: Wed Dec 04 07:16:46 GMT 2024

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

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

Back to the top