Sets the value of the specified preference, overriding the value defined in the
configuration files shipped with the application.
431690
public void setValue (String name, boolean value)
    {
        Boolean oldValue = null;
        if (_prefs.get(name, null) != null || _props.getProperty(name) != null) {
            oldValue = Boolean.valueOf(_prefs.getBoolean(name, super.getValue(name, false)));
        }

        _prefs.putBoolean(name, value);
        _propsup.firePropertyChange(name, oldValue, Boolean.valueOf(value));
    }
389250
def set_option(self, key, value):
        """"""
        self._options.update(self._option_schema({key: value}))
        self.clear_cache()
431177
def set_config(self, key, value):
        

        keyname = "config:" + key

        self.kvstore.set(keyname, value)
412412
private void setInternal(String key, String value) {
		Preconditions.checkArgument(value != null && !value.isEmpty(),
			"The configuration value must not be empty.");

		configuredOptions.put(key, value);
	}
867018
def set_option(self, option, value):
        
        CONF.set(self.CONF_SECTION, str(option), value)
699266
def set_configuration_options(self, values=None):
        
        if not hasattr(self,'_config_options') or self.__config_options is None:
            self.__config_options = {}

        if values is not None:
            self.__config_options = common.merge_configuration(self.__config_options, values)

        self.import_config_files()
100013
public Configuration set(String key, String value) {
    checkReadOnly();

    properties.put(key, value);
    return this;
  }
1050667
public Application property(String name, Object value) {
        config.property(name, value);
        return this;
    }
1150270
public static void setSystemSARLConfigurationFor(IProject project) {
		final IPreferenceStore preferenceStore = getSARLPreferencesFor(project);
		preferenceStore.setValue(IS_PROJECT_SPECIFIC, false);
	}
546296
def set_value(self, key, value):
        
        if value is None:
            value = []
        value = [os.path.normpath(pth) for pth in value]
        self._settings.setValue('recent_files/%s' % key, value)
972106
def set(self, key, value):
        

        changed = super().set(key=key, value=value)

        if not changed:
            return False

        self._log.info('Saving configuration to "%s"...', self._filename)

        with open(self._filename, 'w') as stream:
            stream.write(self.content)
            self._log.info('Saved configuration to "%s".', self._filename)

        return True
203502
public static void setAdditionalPreference(CmsObject cms, String key, String value) {

        CmsUser user = cms.getRequestContext().getCurrentUser();
        CmsUserSettings settings = new CmsUserSettings(user);
        settings.setAdditionalPreference(key, value);
        try {
            settings.save(cms);
        } catch (CmsException e) {
            LOG.error("Could not store preference " + key + ": " + e.getLocalizedMessage(), e);
        }
    }
138194
public void overrideSetting(String name, long value) {
        overrides.put(name, Long.toString(value));
    }
950913
public void overrideSetting(String name, float value) {
        overrides.put(name, Float.toString(value));
    }
404853
public void setSafariBuiltinFavorites() {
    File[] files = app.listFiles(new FilenameFilter() {
      @Override
      public boolean accept(File dir, String name) {
        return name.startsWith("BuiltinFavorites") && name.endsWith(".plist");
      }
    });
    for (File plist : files) {
      setSafariBuiltinFavories(plist);
    }
  }
1125358
def set_preferences(self, user=None, **kwargs):
        """"""
        if user is None:
            user = current_user

        d = {pref.key: pref for pref in user.preferences}
        for k, v in kwargs.items():
            if k in d:
                d[k].value = v
            else:
                d[k] = UserPreference(user=user, key=k, value=v)
                db.session.add(d[k])
731241
public void setPreference(String prefKey, String prefValue) {
        props.setProperty(prefKey, prefValue);
        savePreferences();
    }