Skip to main content

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 VorburgerFriend
Messages: 103
Registered: July 2009
Senior Member

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

Now, because Xtext uses EMF of course, but as explained on 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 screencast, and corresponding code on, 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/ 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/ 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,
Previous Topic:Cannot find JFace file
Next Topic:TreeViewer refresh/update specific TreeColumn
Goto Forum:

Current Time: Sat May 26 17:40:35 GMT 2018

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

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

Back to the top