code: public void inputChanged(final Viewer viewer, Object oldInput,
        Object newInput) {
      if (oldInput == CONTENT_ROOT)
        ServerRegistry.getInstance().removeListener(this);
      if (newInput == CONTENT_ROOT)
        ServerRegistry.getInstance().addListener(this);
    }
docs: /* @inheritDoc