Hi Bart,

To see popups like this in the swt Browser you need to add a couple of extra
listeners, as demonstrated in
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet270.java?view=co
 .
The Browser receives notifications for these by setting a WindowCreator2 as
the nsIWindowWatcher's window creator (see swt classes
org.eclipse.swt.browser.Mozilla and org.eclipse.swt.browser.WindowCreator2).

Grant


<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> I need to listen to every action that wants to open a new browser
> window, to get its URI and create new window.
> I tried to registerNotification() on nsIWindowWatcher, but it seems
> that it is called when window is already opened.
> Also found, that link-clicks can be catched by replacing
> nsILinkHandler, but in my position its imposible (I use JavaXPCOM,
> which doesn't have such interface), anyway I'm afraid it wouldn't help
> - I need only target="_blank" links...
>
> I currently get no action when such 'opening window event' happens
> (maybe because it's not implemented in the java SWT browser widget I'm
> using). What should I do to get it working?
>
>
> bart


_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to