Community
Participate
Working Groups
Currently they BindingTable is referencing a BindingContext using an ID. To me it looks like BindingTable is a child of BindingContext and then doesn't need the ID-Reference any more
Created attachment 185473 [details] Model changes Paul, all those String referenceing in the binding system don't look correct. I think we once defined that we should use string references as less as possible. I think this stem from the fact that we very long had no contribution story for this which has been changed already in 4.0 This model-patch does the following: a) it makes the BindingTable a child of BindingContext b) it remove the BindingTable from BindingTableContainer and renamed this one BindingContextContainer c) modified Bindings to hold a list of BindingContext instead of Strings
Created attachment 185477 [details] Model changes This is less radical - it only replaces the string references through real java references.
Changes like this will have to wait until the new year. PW
Agreed - if you are ok with such a change I could prepare the e4xmi-editor to work with it.
Created attachment 187907 [details] model patch
Created attachment 188991 [details] model patch and update v04 This turns most gets into getContext().getElementId() and the sets into a search for a MBindingContext from the application.getRootContext() list. Remy, can I get you to look at ModelReconcilerBindingTableTest.java, there are 4 errors there. Description Resource Path Location Type The method getBindingContextId() is undefined for the type MBindingTable ModelReconcilerBindingTableTest.java /org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/reconciler line 46 Java Problem That leaves errors in the ...e4.tools.emf.ui and in simpleide. PW
Created attachment 189002 [details] simple ide model patch
Created attachment 189004 [details] make editor work (at least) This patch makes the editor at least useable for everything beside the new binding story - once we have a running workbench patch (applied) I'll update the editor code which is a bit more work than I can do just now
Created attachment 189010 [details] Reconciler patch v1
Created attachment 189019 [details] Reconciler and tests patch v2
Created attachment 189029 [details] Role model and other patches v05 This patches roles in the other 3 + fixes the e4xmi for contacts and e4 photo demos. PW
Released to HEAD PW
I've fixed the ModelEditor to support this new element type. The only bundle still broken is "org.eclipse.e4.ui.workbench.renderers.swt.cocoa"
Committed fix for CocoaUIHandler
Oops, I should note that I patched BindingServiceImpl #activateBinding() and #deactivateBinding() to avoid an NPE when attempting to add a binding for a binding table that does not yet exist. BindingServiceImpl should really create a new table and corresponding model objects, but that was beyond the scope of this fix :-) Submitted as bug 337384.