code: public void saveFavorites() {
  
          m_clipboard.saveFavorites();
          if (m_listPanel.getWidgetCount() < 1) {
              m_editButton.disable(Messages.get().key(Messages.GUI_TAB_FAVORITES_NO_ELEMENTS_0));
          }
          m_buttonEditingPanel.setVisible(false);
          m_buttonUsePanel.setVisible(true);
      }
docs: Saves the favorites.<p>