EList <-> ListProperty databinding [message #1391008] |
Mon, 30 June 2014 06:09 |
Eclipse User |
|
|
|
Hi,
I'm lost in databinding:
I have to bind together:
EList<Point2D> getValueFunction(); -> in my model
ListProperty<Point2D> dataProperty(); -> in a custom JavaFX widget
I tried something along the lines:
IEMFListProperty lProp = EMFEditProperties.list(domain,
HyconmdePackage.Literals.CRITERIA__VALUE_FUNCTION);
IObservableList ioList = lProp.observe(master);
ObservableList<Point2D> oList = AdapterFactory.adapt(ioList);
valueFunctionPane.setData(oList);
But it doesn't look right.
I didn't find any IJFXBean... handling lists.
What's the right spell?
I should be using Commands to edit model because of undo/redo.
Once this works :) I'll have a further problem:
the Points2D in the model are graphically edited using mouse, so a huge
lot of changes are done; would it be possible to group together changes
(wit some timeout?) so that undo will undo the whole group?
TiA
Mauro
|
|
|
Powered by
FUDForum. Page generated in 0.03204 seconds