DisposeListener not called while widget is disposed... [message #151537] |
Thu, 30 October 2003 11:17  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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);
> }
> });
> }
> ...
|
|
|
Powered by
FUDForum. Page generated in 0.03577 seconds