Re: JavaXPCOM, nsIFavIconService

2010-03-24 Thread Christian Biesinger
Steve Sobol wrote: Huh. Ok, that's cool. QueryInterface -- or the equivalent method in SWT's Browser object, I think it's getInterface -- works for all of the other interfaces I'm using. I was not aware that I was accessing them the wrong way! Well, there's things that you can access using Q

Re: JavaXPCOM, nsIFavIconService

2010-03-23 Thread Steve Sobol
In article <5_udnss6lv2_wzxwnz2dnuvz_hqdn...@mozilla.org>, grant_ga...@ca.ibm.com says... > > The lines you want are: > > nsIServiceManager serviceManager = > Mozilla.getInstance().getServiceManager(); > nsIFaviconService service = > (nsIFaviconService)serviceManager.getServiceByContractID("@moz

Re: JavaXPCOM, nsIFavIconService

2010-03-23 Thread Grant Gayed
The lines you want are: nsIServiceManager serviceManager = Mozilla.getInstance().getServiceManager(); nsIFaviconService service = (nsIFaviconService)serviceManager.getServiceByContractID("@mozilla.org/brows er/favicon-service;1", nsIFaviconService.NS_IFAVICONSERVICE_IID); If you're asking which s

Re: JavaXPCOM, nsIFavIconService

2010-03-22 Thread Steve Sobol
In article , cbiesin...@gmail.com says... > > Steve Sobol wrote: > > I'm embedding Mozilla into a Java app using XULRunner 1.9.2, and I am > > looking for a web page's favicon... so I do this: > > > > > > nsIFaviconService fave = (nsIFaviconService)webBrowser. > > queryInterface(nsIFavicon

Re: JavaXPCOM, nsIFavIconService

2010-03-22 Thread Christian Biesinger
Steve Sobol wrote: I'm embedding Mozilla into a Java app using XULRunner 1.9.2, and I am looking for a web page's favicon... so I do this: nsIFaviconService fave = (nsIFaviconService)webBrowser. queryInterface(nsIFaviconService.NS_IFAVICONSERVICE_IID); The webbrowser object doesn't i

JavaXPCOM, nsIFavIconService

2010-03-19 Thread Steve Sobol
I'm embedding Mozilla into a Java app using XULRunner 1.9.2, and I am looking for a web page's favicon... so I do this: nsIFaviconService fave = (nsIFaviconService)webBrowser. queryInterface(nsIFaviconService.NS_IFAVICONSERVICE_IID); nsIURI iconURI = fave.getFaviconImageForPage(faviconU