Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Re-Opening View Problem
Re-Opening View Problem [message #962624] Mon, 29 October 2012 07:52 Go to next message
Ted Mosby is currently offline Ted MosbyFriend
Messages: 9
Registered: April 2012
Junior Member
Hi!

Following situation: in my RCP-Application, when i close a view programmatically (with "IWorkbenchPage.hideView(myView.ID") and re-open the view in a commandhandler, all the widgets in the view are marked as "disposed" at the first time and some exceptions will be thrown. Why are they marked as disposed? When the the view is closed they will be disposed, right? And when the view is re-opened, all the widgets will be created again, or did i miss something?
Is there a better way to close and open a view/views than using "IWorkbenchPage.hideView(myView.ID)" and "IWorkbenchPage.showView(myView.ID)" because a have absolut no idea.

Thanks in advance!
Re: Re-Opening View Problem [message #962695 is a reply to message #962624] Mon, 29 October 2012 08:58 Go to previous messageGo to next message
Sumit Singh is currently offline Sumit SinghFriend
Messages: 141
Registered: October 2012
Location: Bangalore
Senior Member

I think these links should helps for you.
www.vogella.com/blog/2009/07/13/eclipse-activities/
www.stackoverflow.com/questions/1227059/how-to-close-a-viewpart-in-eclipse

[Updated on: Mon, 29 October 2012 09:00]

Report message to a moderator

Re: Re-Opening View Problem [message #962808 is a reply to message #962695] Mon, 29 October 2012 10:47 Go to previous message
Mario Marinato is currently offline Mario MarinatoFriend
Messages: 38
Registered: March 2011
Location: Brazil
Member
There's a chance you are adding some listeners during the creation of the view and not removing them when it is closed.

If it's happening, listened-to objects might still be firing events to the previous view, leading to the widget-is-disposed errors.


Mário Marinato
From Brazil
Previous Topic:can we reuse the Parts in eclipse 4.2 for RCP.?
Next Topic:Adding a SortAction to my View
Goto Forum:
  


Current Time: Wed Apr 24 14:45:16 GMT 2024

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

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

Back to the top