/* (non-Javadoc)
   * @see org.eclipse.ui.part.WorkbenchPart#getAdapter(java.lang.Class)
   */
  @Override
  public Object getAdapter(Class key) {
    if (key == IShowInSource.class) {
      return getShowInSource();
    }
    if (key == IContextProvider.class)
      return JavaUIHelp.getHelpContextProvider(this, getHelpContextId());

    return super.getAdapter(key);
  }
  @SuppressWarnings("unchecked")
  @Override
  public <T> T getAdapter(Class<T> key) {
    if (key == IShowInSource.class) {
      return (T) getShowInSource();
    }
    if (key == IContextProvider.class)
      return (T) JavaUIHelp.getHelpContextProvider(this, getHelpContextId());

    return super.getAdapter(key);
  }
 protected final void setHelp() {
   JavaUIHelp.setHelp(fViewer, getHelpContextId());
 }