protected void update() {
    if (isSelectionOnly()) {
      selection = LinkGrabberTable.getInstance().getSelectionInfo();

    } else {
      selection = LinkGrabberTable.getInstance().getSelectionInfo(false, true);
    }
    setEnabled(!selection.isEmpty());
  }
 private PackageControllerTable<?, ?> getTable() {
     if (MainTabbedPane.getInstance().isDownloadView()) {
         return DownloadsTable.getInstance();
     } else if (MainTabbedPane.getInstance().isLinkgrabberView()) {
         return LinkGrabberTable.getInstance();
     }
     return null;
 }
  protected void updateListeners() {
    if (isSelectionOnly()) {

      LinkGrabberTableModel.getInstance().getEventSender().removeListener(this);
      LinkGrabberTable.getInstance().getEventSender().addListener(this, true);
    } else {
      LinkGrabberTable.getInstance().getEventSender().removeListener(this);
      LinkGrabberTableModel.getInstance().getEventSender().addListener(this, true);
    }
    switch (getAutoStart()) {
      case AUTO:
        CFG_LINKGRABBER.LINKGRABBER_AUTO_START_ENABLED.getEventSender().addListener(this, true);
        break;
      default:
        CFG_LINKGRABBER.LINKGRABBER_AUTO_START_ENABLED.getEventSender().removeListener(this);
    }
  }