add: getShowLineNumbersNode().checked = pref.showLineNumbers.get(); 
context: colorediffsGlobal.colorediffsToolbar = new function() {	var me = colorediffsGlobal;	var pref = new me.Pref(me.getPrefs());	var getNode = function (name) {		return function() {return me.$(name);}	}	var getViewModeNode = getNode('colorediffs-view-mode');	var getDiffModeNode = getNode('colorediffs-diff-mode');	var getShowWhiteSpacesNode = getNode('colorediffs-show-whitespaces');	var getToolbarNode = getNode('colorediffs-toolbar');	var reloadWithScrollPreserved = function() {		var mp = me.getMessagePane();		var oldScroll = mp.contentWindow.scrollY;		mp.addEventListener(			"load",			function() {				mp.contentWindow.scrollTo(0, oldScroll);				mp.removeEventListener("load", arguments.callee, true);			},			true);		MsgReload();	}	var updatePrefs = function() {		pref.showWhiteSpace.set(getShowWhiteSpacesNode().checked);		pref.mode.set(getViewModeNode().selectedItem);		pref.diffMode.set(getDiffModeNode().selectedItem.value);		pref.showToolbar.set(!getToolbarNode().hidden)	}	this.selectMode = function () {		updatePrefs();		MsgReload();	}	this.toggleWhiteSpaces = function () {		getShowWhiteSpacesNode().checked = !getShowWhiteSpacesNode().checked;		updatePrefs();		reloadWithScrollPreserved();	}	this.showOptions = function() {		var features = "chrome,titlebar,toolbar,centerscreen";		window.openDialog("chrome://colorediffs/content/options/options.xul", "Preferences", features);	}	this.selectDiffMode = function() {		updatePrefs();		MsgReload();	}	this.closeToolbar = function() {		getToolbarNode().hidden=true		updatePrefs();	}	this.initToolbar = function () {		if (pref.showToolbar.get()) {			//check if should be shown			if (!me.isActive()) {				getToolbarNode().hidden=true;			} else {				getToolbarNode().hidden=false;				getShowWhiteSpacesNode().checked = pref.showWhiteSpace.get();				//update combobox				getViewModeNode().selectedItem = pref.mode.get();				var menulist = getDiffModeNode();				var items = menulist.firstChild.childNodes;				for( var i=0; i < items.length; i++ ) {					if ( items[i].getAttribute("value") == pref.diffMode.get() ) {						menulist.selectedItem = items[i];						break;					}				}			}		} else {			getToolbarNode().hidden=true;		}	}}
meta: 4572	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4572/3bf8d405e0db173ef80c805f9a27d7df193fb803/toolbar.js/clean/content/colorediffs/toolbar.js