Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Widget is disposed(Hide and show view)
Widget is disposed [message #524989] Mon, 05 April 2010 03:07 Go to next message
Eclipse UserFriend
I have a problem with hidining and reopening view:
1.I hide view: ..getActivePage().hideView(part);
2.When i try to reopen view:..getActivePage().showView(ReferencePetriNetView.ID);
Then view is displayed properly but i get SWTException Widget is disposed.

Have any idea why?

Thanks a lot for your replies.
Re: Widget is disposed [message #525008 is a reply to message #524989] Mon, 05 April 2010 05:39 Go to previous message
Eclipse UserFriend
Hi Matej,

> Then view is displayed properly but i get SWTException Widget is disposed.

could it be that a reference to some widget in the view you closed is still flying around
somewhere and is used after the view was closed / the widget was disposed? This happens
very often when background jobs are used which update the UI after some time. If not, a
stack trace might be helpful to see the reason for the problem.

Greetings,

Ralf



--
http://www.ralfebert.de/blog/
http://twitter.com/ralfebert/
Previous Topic:IPartListener
Next Topic:Cut/Copy/Paste
Goto Forum:
  


Current Time: Thu Jun 19 05:53:21 EDT 2025

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

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

Back to the top