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.
sumit singh Messages: 73 Registered: October 2012 Location: Bangalore
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