|[DataBinding] Xtext EMF EDB Implementation, help needed with List & observeDetails() [message #921679]
||Mon, 24 September 2012 10:34
| Michael Vorburger
Registered: July 2009
We have been experimenting with using Eclipse Data Binding (EDB) with Xtext. The context/background of this twofold: a) Form Editors for Xtext-based Models, b) UI modeling ideas, see blog2.vorburger.ch/2012/08/vaadin-emf-eclipse-data-binding.html
Now, because Xtext uses EMF of course, but as explained on koehnlein.blogspot.ch/2010/06/semantic-model-access-in-xtext.html requires read and write to go through IXtextDocument readOnly/modify/process/exec IUnitOfWork Xtext APIs; the EDB EMF[Edit]Properties therefore don't work with Xtext Editors, because they directly hit EMF EObject eSet/eGet (or EMF Edit Commands).
As you can see on youtu.be/7RThXRyo3ik screencast, and corresponding code on github.com/vorburger/xtext-sandbox/tree/master/XtextDocumentBinding, current state is that it's working for ValueProperty & FeaturePath.
However, we can not seem to get List support & observeDetails() etc. to work, and would much appreciate any hints/pointers/patches... Starting point to have a look: If one uncomments ViewerSupport.bind() at the end of XtextDocumentBinding/ch.voburger.xtext.sandbox.mydsl.ui/src/ch/voburger/xtext/sandbox/mydsl/ui/editor/MUIXtextEditor.java and opens XtextDocumentBinding/ch.voburger.xtext.sandbox.mydsl.ui/test.mydsl in an Editor launched via XtextDocumentBinding/ch.voburger.xtext.sandbox.mydsl.tests/SandboxXtextDocumentBinding.launch], Exceptions illustrate where it "doesn't match". In ch.vorburger.xtext.databinding/src/ch/vorburger/xtext/databinding/XtextValueProperty.java might need 3x observeDetail() uncommented... causes different mismatch...
My apologies for this "cry for help" - do any of the Data Binding API experts here have any interest in looking into and helping out with progressing this?
Thanks a lot,
Powered by FUDForum
. Page generated in 0.01893 seconds