Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » EMF Databinding adapter leak with javafx(EMF Databinding adapter leak with javafx)
EMF Databinding adapter leak with javafx [message #1705890] Wed, 19 August 2015 20:23 Go to next message
Greg Babcock is currently offline Greg BabcockFriend
Messages: 41
Registered: October 2012
Member
I have a master detail form and would like to use EMF data binding to bind a text field to the currently selected EObject. The problem is that EMFEditFXProperties creates a new adapter and adds it to the selected object but there is no context to dispose of like JFace databinding has. So each time an item is selected in the master list a new adapter is added to that item.

Am I missing something or is this seriously broken.
Re: EMF Databinding adapter leak with javafx [message #1705902 is a reply to message #1705890] Wed, 19 August 2015 22:29 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
File a bug but I would suggest you use Eclipse-Databinding like you used
to in the SWT-World - the relevant classes are in
org.eclipse.fx.ui.databinding

Tom

On 19.08.15 22:23, Greg Babcock wrote:
> I have a master detail form and would like to use EMF data binding to
> bind a text field to the currently selected EObject. The problem is
> that EMFEditFXProperties creates a new adapter and adds it to the
> selected object but there is no context to dispose of like JFace
> databinding has. So each time an item is selected in the master list
> a new adapter is added to that item.
> Am I missing something or is this seriously broken.
Re: EMF Databinding adapter leak with javafx [message #1705986 is a reply to message #1705902] Thu, 20 August 2015 17:18 Go to previous message
Greg Babcock is currently offline Greg BabcockFriend
Messages: 41
Registered: October 2012
Member
Tom,

Thank you for your reply, I am now using the standard data binding utility with the fx extension that you wrote. I also filed bug 475516.

Greg
Previous Topic:Trying to create an e4 only application with JavaFX
Next Topic:DIApplication doesn't start on Mac
Goto Forum:
  


Current Time: Wed Jan 22 05:45:13 GMT 2025

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

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

Back to the top