|Re: Setting XULRunner properties programmatically [message #805256 is a reply to message #804539]
||Thu, 23 February 2012 14:52
| Grant Gayed
Registered: July 2009
The only way to do this would be via JavaXPCOM. For info on JavaXPCOM
see http://www.eclipse.org/swt/faq.php#howusejavaxpcom . For an example
of using XPCOM to change some mozilla preference values see
(the code to do the equivalent in JavaXPCOM would follow the same
general steps but would be more straight-forward).
On 2/22/2012 1:51 PM, Markward Schubert wrote:
> Hello everybody!
> Short question:
> Is there a way to programmatically set preferences in XULRunner, like
> pref("somepref","somevalue") or user_pref("somepref","somevalue") in the
> different pref.js files of Mozilla?
> What we especially would like to set is spellchecker.dictionary. Ideally
> this could be set at runtime, so that the next page, which is rendered,
> can be spellchecked with the new dictionary set.
> Any help is appreciated.
Powered by FUDForum
. Page generated in 0.02000 seconds