/* (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);
  }
Ejemplo n.º 2
0
  @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);
  }
Ejemplo n.º 3
0
 protected final void setHelp() {
   JavaUIHelp.setHelp(fViewer, getHelpContextId());
 }