/**
  * When a WorkbenchPart is closed, check if that part is an editor using the model provided by
  * the ResourceInfo object. If it is, remove that editor from the editor list.
  */
 public void partClosed(IWorkbenchPart part) {
   if (part instanceof IEditorPart) {
     if (editor == part) manager.dispose();
   }
 }
 /* (non-Javadoc)
  * @see org.eclipse.ui.IWindowListener#windowClosed(org.eclipse.ui.IWorkbenchWindow)
  */
 public void windowClosed(IWorkbenchWindow window) {
   if (editor.getSite().getWorkbenchWindow() == window) {
     manager.dispose();
   }
 }