bundles/org.eclipse.orion.client.ui/web/orion/settings/settingsRegistry.js
function(category) {
			var settingsMap = this.settingsMap;
			var pids = typeof category === 'string' ? this.categories[category] : Object.keys(settingsMap); //$NON-NLS-0$
			if (!pids) {
				return [];
			}
			return pids.map(function(pid) {
				return settingsMap[pid];
			});
		}
function(category) {
			var settingsMap = this.settingsMap;
			var pids = typeof category === 'string' ? this.categories[category] : Object.keys(settingsMap); //$NON-NLS-0$
			if (!pids) {
				return [];
			}
			return pids.map(function(pid) {
				return settingsMap[pid];
			});
		}
function ( category ) { var settingsMap = this . settingsMap ; var pids = typeof category === 'string' ? this . categories [ category ] : Object . keys ( settingsMap ) ; //$NON-NLS-0$ if ( ! pids ) { return [ ] ; } return pids . map ( function ( pid ) { return settingsMap [ pid ] ; } ) ; }
Returns settings.
@param {String} [category] If passed, returns only the settings in the given category. Otherwise, returns all settings.
@returns {orion.settings.Setting[]}
Returns settings .