Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Getting IValueProperty of a certain value in a MAP(ViewerSupport.bind(StructuredViewer viewer, IObservableList input, IValueProperty[] labelProperties))
Getting IValueProperty of a certain value in a MAP [message #897485] Tue, 24 July 2012 09:25
Simon Scholz is currently offline Simon ScholzFriend
Messages: 73
Registered: April 2012
Location: Germany

I took a look at the Snippet013TableViewerEditing sample snippet.

In that snippet the ViewerSupport is used for the binding between model and the TableViewer.

ViewerSupport.bind method needs an array of IValueProperty[] to bind the items in the input list.

In the sample the IValueProperty is staticly defined by the person class, which has a name property, so BeanProperties.value(Person.class, "name") can be used.
My "Person" class contains a Map, which has a key to identify in which column the value should be shown.

Is it somehow possible to create an IValueProperty for a certain Map Entry in my own "Person" class?
Something like :
BeanProperties.value(Person.class, "nameOfTheMapInsideThePersonClass", keyOfTheMapEntry) ?

So that I can pass IValueProperty[] to the ViewerSupport.bind method, which describe the values in the Map?

Best regards,

Previous Topic:Data Binding Exception when closing.
Next Topic:Deferred content provider
Goto Forum:

Current Time: Mon Apr 23 02:26:50 GMT 2018

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

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