code: void saveToUser() {
  
          List<String> apps = new ArrayList<String>();
          int count = m_userApps.getComponentCount();
          for (int i = 0; i < count; i++) {
              Button button = (Button)m_userApps.getComponent(i);
              apps.add((String)button.getData());
          }
  
          try {
              OpenCms.getWorkplaceAppManager().setUserQuickLaunchApps(A_CmsUI.getCmsObject(), apps);
          } catch (Exception e) {
              CmsErrorDialog.showErrorDialog("Could not write user Quicklaunch apps", e);
          }
      }
docs: Saves the changed apps setting.<p>