Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » EList <-> ListProperty databinding
EList <-> ListProperty databinding [message #1391008] Mon, 30 June 2014 10:09
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
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,
IObservableList ioList = lProp.observe(master);
ObservableList<Point2D> oList = AdapterFactory.adapt(ioList);

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?

Previous Topic:NIghtly build for win86-x64 does not work?
Next Topic:org.eclipse.fx.ui.workbench.base.internal.LoggerProviderImpl$1 error
Goto Forum:

Current Time: Tue Jun 19 07:01:59 GMT 2018

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

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

Back to the top