/**
  * Sets the part site.
  *
  * <p>Subclasses must invoke this method from <code>IEditorPart.init</code> and <code>
  * IViewPart.init</code>.
  *
  * @param site the workbench part site
  */
 protected void setSite(IWorkbenchPartSite site) {
   checkSite(site);
   this.partSite = site;
 }