Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » [DataBinding] Xtext EMF EDB Implementation, help needed with List & observeDetails()
[DataBinding] Xtext EMF EDB Implementation, help needed with List & observeDetails() [message #921679] Mon, 24 September 2012 10:34
Michael Vorburger is currently offline Michael Vorburger
Messages: 62
Registered: July 2009
Member
Hello,

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... Sad

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,
Michael
Previous Topic:Cannot find JFace src.zip file
Next Topic:add Dynamic Data to ComBoboxCellEditor
Goto Forum:
  


Current Time: Sat Oct 25 13:28:55 GMT 2014

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

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