|
Re: Setting XULRunner properties programmatically [message #805256 is a reply to message #804539] |
Thu, 23 February 2012 14:52 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
Hi Markward,
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
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT%20Mozilla/common/org/eclipse/swt/browser/Mozilla.java?id=v3821b#n2295
(the code to do the equivalent in JavaXPCOM would follow the same
general steps but would be more straight-forward).
HTH,
Grant
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.
>
> Regards,
> Markward
|
|
|
Powered by
FUDForum. Page generated in 0.05487 seconds