Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » taking control over SWT Browser widget
taking control over SWT Browser widget [message #441741] Mon, 23 August 2004 11:53 Go to next message
Eclipse UserFriend
Originally posted by: arsen.softsky.com.ua

Hello everybody.
I would like to take control over SWT Browser widget. I mean monitor mou=
se =

motion events, access DOM Document, get Element from Point and so on. Do=
es =

anyone know how to access Mozilla instance within bowser widget? I'm =

talking about some tricks of course.

-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: taking control over SWT Browser widget [message #441758 is a reply to message #441741] Mon, 23 August 2004 22:37 Go to previous message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
Hi Arsen,

If you need a hint, you can have a look at the internal classes in the SWT
Source folder org.eclipse.swt/Eclipse SWT
Mozilla/common/org/eclipse/swt/internal/mozilla. Note they really are
'internal' and not part of the API!!! They are part of the implementation
and may change anytime. They are used to bind to Mozilla itself. If you
are familiar with XPCOM and Mozilla programming this will sound familiar.
You need to add many more interfaces to be able to 'talk' to the Mozilla
DOM. You can obtain the nsIWebBrowser instance from the implementation of
the Browser class. From there you can call GetContentDOMWindow etc. You
may prefer writing this using C++ instead of java if you find it easier.
Otherwise, if you own the HTML content, you can access the DOM through
javascript.

Chris
Previous Topic:how do you walk down the swt child chain for a swing frame?
Next Topic:PieSlice - Useful source for people (and maybe inclusion in SWT?)
Goto Forum:
  


Current Time: Wed Apr 24 22:09:11 GMT 2024

Powered by FUDForum. Page generated in 0.03696 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top