Re: Cannot get nsIDOMDocument

Carfield Yim <[email protected]> Wed, 11 Jul 2007 19:47:46 -0700
Newsgroups gmane.comp.mozilla.devel.java
Organization http://groups.google.com
Message-ID <1184208466.150056.70090__29367.4639113762$1184208626$gmane$org@k79g2000hse.googlegroups.com>
> You haven't called initEmbedding(), you haven't set up the window to
> draw into, you haven't loaded a page.  Basically, you need to do more
> than what you have here.
>
> Take a look at the ATF implementation (embeds XULRunner in an Java SWT
> app):http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.atf/components/p...,
> starting with the MozillaBrowser contructor, which sets everything up.
>
> The MozillaHelper.getMozillaInstance() call is what actually calls
> initialize() and initEmbedding(), as seen here:http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.atf/components/p...
>
> Once you've set everything up as shown, you should be able to call
> getContentDOMWindow().
>
> javier pedemonte

Actually there is just some config problem of my development
environment. However eclipse ATF plugin choose to hide all the
exceptions to user :-/ You can refer to this to get what I mean :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=191507