"this" keyword equivalent for XWT databinding [message #839540] |
Sun, 08 April 2012 22:15 |
Rafael Ribeiro Messages: 17 Registered: April 2012 |
Junior Member |
|
|
Hi all,
Is there any "this" keyword equivalent to be used in XWT databinding? To make things clearer, I am implementing a view which simply has a a JFace ListViewer and two buttons, one for adding elements and one for removing (in fact it is still kind of a proof of concept). For simplicity of the implementation I was willing to have the backing list directly as an attribute of the underlying class of the XWT view, so, the event listener code could be as simple as list.add(something) and the inclusion would be reflected into the view.
I saw a sample on E4 CVS that the ObjectInstance property for a CustomDataProvider class had the value of "{Binding}" (CustomDataProvider_Switch.xwt sorry but I could not paste the links since I have not yet posted more than 25 messages)and tried this on ObjectDataProvider but with no success (XWT designer fails with an StringIndexOutOfBounds which makes me wonder if this isn't valid).
Does anyone know which combination of DataProvider and input property value (as in ListViewer_BindingPath.xwt) that could achieve what I am trying to do?
best regards,
[Updated on: Sun, 08 April 2012 22:17] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03019 seconds