title: How to close a ViewPart in Eclipse?
body: <p>I have a view in Eclipse (implemented by a class which extends <code>org.eclipse.ui.part.ViewPart</code>) which I need to close. I mean completely close, not just hide. I want a new ViewPart instance to be created when the user (or my code) asks to open the view again.</p>
  
  <p>The only method I found was <code>IWorkbenchPage.hideView</code> which hides the view, but does not completely dispose of it. Invoking <code>dispose</code> on the view has no affect, either. </p>
  
  <p>BTW, my view is defined as <code>allowMultiple="false"</code> but I tried with <code>true</code> and that didn't make any difference.</p>
  
  <p>Any help will be appreciated.</p>