Saves the favorite list.<p>
766169
public void saveFavorites() {

        m_isEditingFavorites = false;
        getHandler().enableFavoriteEditing(false, m_dndController);
        List<String> clientIds = new ArrayList<String>();
        Iterator<Widget> it = m_favorites.iterator();
        while (it.hasNext()) {
            try {
                CmsMenuListItem element = (CmsMenuListItem)it.next();
                element.hideRemoveButton();
                element.showEditButton();
                clientIds.add(element.getId());
            } catch (ClassCastException e) {
                CmsDebugLog.getInstance().printLine("Could not cast widget");
            }
        }
        getHandler().saveFavoriteList(clientIds);
    }
357978
public static void saveSearchFavourite(SearchFavourite sf, final DataCallback<SearchFavourite> onFinished) {
		SaveSearchFavouriteRequest ssfr = new SaveSearchFavouriteRequest();
		ssfr.setSearchFavourite(sf);
		GwtCommand command = new GwtCommand(SaveSearchFavouriteRequest.COMMAND);
		command.setCommandRequest(ssfr);
		GwtCommandDispatcher.getInstance().execute(command, new AbstractCommandCallback<SaveSearchFavouriteResponse>() {
			public void execute(SaveSearchFavouriteResponse response) {
				if (onFinished != null) {
					onFinished.execute(response.getSearchFavourite());
				}
			}
		});
	}
944363
void doSave(XMLWriter w) throws KNXMLException
	{
		// <expiration timeout=int />
		w.writeEmptyElement(TAG_EXPIRATION, Arrays
			.asList(new Attribute[] { new Attribute(ATTR_TIMEOUT, Integer
				.toString(timeout)) }));
		w.writeElement(TAG_UPDATING, Collections.EMPTY_LIST, null);
		synchronized (updating) {
			for (final Iterator i = updating.iterator(); i.hasNext();)
				((GroupAddress) i.next()).save(w);
		}
		w.endElement();
		w.writeElement(TAG_INVALIDATING, Collections.EMPTY_LIST, null);
		synchronized (invalidating) {
			for (final Iterator i = invalidating.iterator(); i.hasNext();)
				((GroupAddress) i.next()).save(w);
		}
		w.endElement();
	}
1352223
private void saveScreenState() {
        clearScreenState();

        savedPhotoCount = gridAdapter.getCount();

        savedPagerPosition = listAnimator.isLeaving() || pagerAdapter.getCount() == 0
                ? NO_POSITION : views.pager.getCurrentItem();

        if (views.grid.getChildCount() > 0) {
            View child = views.grid.getChildAt(0);
            savedGridPosition = views.grid.getChildAdapterPosition(child);
            savedGridPositionFromTop = child.getTop()
                    - Views.getMarginParams(child).topMargin
                    - views.grid.getPaddingTop();
        }
    }
1003395
function saveList(brain) {
    const taboolist = [];
    taboo.forEach((re, topic) => {
      taboolist.push(topic);
    });
    brain.set("taboo", taboolist);
  }
934713
public void redo() {
    if (isListChange()) {
      LOGGER.trace("Redoing list change: " + newList.get().toString());
      setting.valueProperty().setValue(newList.get());
    } else {
      setting.valueProperty().setValue(newValue.get());
    }
  }
734329
public void saveAndDeleteEntities(
        final CmsEntity lastEditedEntity,
        final List<String> deletedEntites,
        final boolean clearOnSuccess,
        final I_CmsSimpleCallback<Boolean> callback) {

        CmsRpcAction<CmsSaveResult> asyncCallback = new CmsRpcAction<CmsSaveResult>() {

            @Override
            public void execute() {

                start(200, true);
                getService().saveAndDeleteEntities(
                    lastEditedEntity,
                    m_clientId,
                    deletedEntites,
                    getSkipPaths(),
                    m_locale,
                    clearOnSuccess,
                    this);
            }

            @Override
            protected void onResponse(CmsSaveResult result) {

                stop(false);
                if ((result != null) && result.hasErrors()) {
                    showValidationErrorDialog(result.getValidationResult());
                } else {
                    callback.execute(Boolean.valueOf((result != null) && result.isHasChangedSettings()));
                    if (clearOnSuccess) {
                        destroyForm(true);
                    }
                }
            }
        };
        asyncCallback.execute();
    }
1230639
@Destroy(priority = AutumnActionPriority.MIN_PRIORITY)
    public void savePreferences() {
        final ObjectSet<Preferences> preferencesToFlush = GdxSets.newSet();
        for (final Entry<String, Preference<?>> preference : preferences) {
            final Preferences preferencesFile = namesToFiles.get(preference.key);
            preferencesToFlush.add(preferencesFile);
            preference.value.save(preference.key, preferencesFile);
        }
        for (final Preferences preferencesFile : preferencesToFlush) {
            preferencesFile.flush();
        }
    }
1207256
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);
        }
    }
1191621
void submit() {

        List<CmsUUID> selectedIds = getSelectedIds();
        List<CmsUUID> updated = Lists.newArrayList();
        CmsObject cms = m_dialogContext.getCms();
        try {
            for (CmsUUID selectedId : selectedIds) {
                cms.restoreDeletedResource(selectedId);
                updated.add(selectedId);
            }
            m_dialogContext.finish(updated);
        } catch (CmsException e) {
            m_dialogContext.error(e);
        }
    }
949514
private void save() {
		int resp = saveChooser.showSaveDialog(this);
		if (resp == JFileChooser.APPROVE_OPTION) {
			File out = saveChooser.getSelectedFile();
			
			ArrayList list = new ArrayList();
			for (int i=0;i<sprites.size();i++) {
				list.add(sprites.elementAt(i));
			}
			
			try {
				int b = ((Integer) border.getValue()).intValue();
				pack.packImages(list, twidth, theight, b, out);
			} catch (IOException e) {
				// shouldn't happen 
				e.printStackTrace();
				JOptionPane.showMessageDialog(this, "Failed to write output");
			}
		}
	}
562087
def saveParList(self, *args, **kw):
        """"""
        if 'filename' in kw:
            filename = kw['filename']
        if not filename:
            filename = self.getFilename()
        if not filename:
            raise ValueError("No filename specified to save parameters")

        if hasattr(filename,'write'):
            fh = filename
            absFileName = os.path.abspath(fh.name)
        else:
            absFileName = os.path.expanduser(filename)
            absDir = os.path.dirname(absFileName)
            if len(absDir) and not os.path.isdir(absDir): os.makedirs(absDir)
            fh = open(absFileName,'w')
        numpars = len(self.__paramList)
        if self._forUseWithEpar: numpars -= 1
        if not self.final_comment: self.final_comment = [''] # force \n at EOF
        # Empty the ConfigObj version of section.defaults since that is based
        # on an assumption incorrect for us, and override with our own list.
        # THIS IS A BIT OF MONKEY-PATCHING!  WATCH FUTURE VERSION CHANGES!
        # See Trac ticket #762.
        while len(self.defaults):
            self.defaults.pop(-1) # empty it, keeping ref
        for key in self._neverWrite:
            self.defaults.append(key)
        # Note also that we are only overwriting the top/main section's
        # "defaults" list, but EVERY [sub-]section has such an attribute...

        # Now write to file, delegating work to ConfigObj (note that ConfigObj
        # write() skips any items listed by name in the self.defaults list)
        self.write(fh)
        fh.close()
        retval = str(numpars) + " parameters written to " + absFileName
        self.filename = absFileName # reset our own ConfigObj filename attr
        self.debug('Keys not written: '+str(self.defaults))
        return retval
972976
public void addPreserveTagList(List<String> preserveTags) {

        for (Iterator<String> it = preserveTags.iterator(); it.hasNext();) {
            addPreserveTag(it.next());
        }
    }
525869
public void savePersonalFavorite(Target target, String category) throws WorkspaceApiException {
        TargetspersonalfavoritessaveData data = new TargetspersonalfavoritessaveData();
        data.setCategory(category);
        data.setTarget(toInformation(target));
        PersonalFavoriteData favData = new PersonalFavoriteData();
        favData.setData(data);
        
        try {
            ApiSuccessResponse resp = targetsApi.savePersonalFavorite(favData);
            Util.throwIfNotOk(resp);
        }
        catch(ApiException ex) {
            throw new WorkspaceApiException("Cannot save personal favorites", ex);
        }
    }
346911
protected synchronized void save() {
        try {
            JSONArray jsonArray = new JSONArray();
            for (Job job : mQueue) {
                if (!(job instanceof InternalJob)) continue;
                InternalJob internalJob = (InternalJob) job;
                jsonArray.put(internalJob.toJSON());
            }

            SharedPreferences prefs = WonderPushConfiguration.getSharedPreferences();
            SharedPreferences.Editor editor = prefs.edit();
            editor.putString(getPrefName(), jsonArray.toString());
            editor.apply();
        } catch (JSONException e) {
            Log.e(TAG, "Could not save job queue", e);
        } catch (Exception e) {
            Log.e(TAG, "Could not save job queue", e);
        }
    }
1158424
def favorites_getList(user_id='', per_page='', page=''):
    """"""
    method = 'flickr.favorites.getList'
    data = _doget(method, auth=True, user_id=user_id, per_page=per_page,\
                  page=page)
    photos = []
    if isinstance(data.rsp.photos.photo, list):
        for photo in data.rsp.photos.photo:
            photos.append(_parse_photo(photo))
    else:
        photos = [_parse_photo(data.rsp.photos.photo)]
    return photos
285382
public boolean saveFavorite(boolean favorite) {
		if (PkRSS.getInstance() == null) return false;

		return PkRSS.getInstance().saveFavorite(this, favorite);
	}