Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » [DataBinding] When to call dispose on context ?
[DataBinding] When to call dispose on context ? [message #512591] Fri, 05 February 2010 14:57 Go to next message
andiqo  is currently offline andiqo Friend
Messages: 32
Registered: July 2009
Member
Hello,

Sorry but it is no very clear to me if I have to dispose the DataBindingContext manually ?

This is what I do in my ViewParts/EditorParts:

@Override
public void dispose() {
try {
dbContext.dispose();
}
finally {
super.dispose();
}
}


And in my Composites:

addDisposeListener(new DisposeListener() {
@Override
public void widgetDisposed(DisposeEvent e) {
dbContext.dispose();
}
});


Is it OK?

Thanks a lot,
Andiqo
Re: [DataBinding] When to call dispose on context ? [message #512682 is a reply to message #512591] Sat, 06 February 2010 03:37 Go to previous message
Matthew Hall is currently offline Matthew HallFriend
Messages: 368
Registered: July 2009
Senior Member
andiqo wrote:
> Hello,
>
> Sorry but it is no very clear to me if I have to dispose the
> DataBindingContext manually ?

Yes you are doing it right.

Matthew
Previous Topic:TreeViewer: Updating the icon on expand/collapse
Next Topic:Can BeanProperties detect, if a Bean provides editing support?
Goto Forum:
  


Current Time: Thu Apr 25 23:02:54 GMT 2024

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

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

Back to the top