rem: prefInt = Components.classes["component: 
add: prefInt = Components.classes["@mozilla.org/preferences;1"]; 
context: function Init(){  doSetOKCancel(Save);    var applicationArea      = new String();  dump("*** pref-charset.js, Init()\n");  try {    if (window.arguments && window.arguments[0])  {           applicationArea = window.arguments[0];    } else {      dump("*** no window arguments!\n");    } //if  } //try  catch(ex) {     dump("*** failed reading arguments\n");  }	try	{		prefInt = Components.classes["component://netscape/preferences"];		if (prefInt) {			prefInt = prefInt.getService();			prefInt = prefInt.QueryInterface(Components.interfaces.nsIPref);			      if (applicationArea.indexOf("mail") != -1) {        pref_string_title = "intl.charsetmenu.mailedit";      } else {        //default is the browser        pref_string_title = "intl.charsetmenu.browser.static";      }      dump("*** " + pref_string_title +  " \n");      pref_string_content = prefInt.getLocalizedUnicharPref(pref_string_title);            AddRemoveLatin1('add');			dump("*** Charset PrefString: " + pref_string_content + "\n");		}	}	catch(ex)	{		dump("failed to get prefs services!\n");		prefInt = null;	}  try {		ccm		= Components.classes['component://netscape/charset-converter-manager'];		if (ccm) {			ccm = ccm.getService();			ccm = ccm.QueryInterface(Components.interfaces.nsICharsetConverterManager2);			availCharsetList = ccm.GetDecoderList();			availCharsetList = availCharsetList.QueryInterface(Components.interfaces.nsISupportsArray);			availCharsetList.sort;		}  }  catch(ex)  {		dump("failed to get charset mgr. services!\n");		ccm		= null;  }	LoadAvailableCharSets();	LoadActiveCharSets();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0257791053c2b38e1dfaf2ee11afae973e82e394/pref-charset.js/clean/xpfe/components/prefwindow/resources/content/pref-charset.js