Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » DisposeListener not called while widget is disposed...
DisposeListener not called while widget is disposed... [message #151537] Thu, 30 October 2003 11:17 Go to next message
Eclipse UserFriend
Hi,

I get the Composite interparent disposed when a refresh of the LabelViewer
instance is done without having the DisposeListener to be called.
How can this situation happen ?
Thank you

PS. When a dispose of the LabelViewer instance is explicitly done I get it
to be called.
...
public LabelViewer(Composite parent, int style)
{
interParent = new Composite(parent, SWT.NONE);
interParent.setLayout(new GridLayout(2, false));
interParent.addDisposeListener(new DisposeListener()
{
public void widgetDisposed(DisposeEvent event)
{
System.out.println(interParent + " is disposed now");
handleDispose(event);
}
});
}
...
Re: DisposeListener not called while widget is disposed... [message #151952 is a reply to message #151537] Fri, 31 October 2003 14:32 Go to previous message
Eclipse UserFriend
Originally posted by: Jacques.Leclercq.pandora.be

Hi,

My problem is solve, the instances of LabelViewer are registered as
Listener and I forgot to unregister the instance when disposed.

Jacques wrote:

> Hi,

> I get the Composite interparent disposed when a refresh of the LabelViewer
> instance is done without having the DisposeListener to be called.
> How can this situation happen ?
> Thank you

> PS. When a dispose of the LabelViewer instance is explicitly done I get it
> to be called.
> ...
> public LabelViewer(Composite parent, int style)
> {
> interParent = new Composite(parent, SWT.NONE);
> interParent.setLayout(new GridLayout(2, false));
> interParent.addDisposeListener(new DisposeListener()
> {
> public void widgetDisposed(DisposeEvent event)
> {
> System.out.println(interParent + " is disposed now");
> handleDispose(event);
> }
> });
> }
> ...
Previous Topic:2.1.2 Release
Next Topic:unedit files in CVS
Goto Forum:
  


Current Time: Wed May 28 18:05:01 EDT 2025

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

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

Back to the top