code: public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
      this.viewer = viewer;
      if ((viewer != null) && (viewer instanceof StructuredViewer))
        this.sviewer = (StructuredViewer) viewer;
      else
        this.sviewer = null;
    }
docs: /* @inheritDoc