Reputation: 9171
How can I tell when my html page on loaded in my swt browser? Is there some sort of event I can listen to?
Upvotes: 3
Views: 351
Reputation: 4617
Add a ProgressListener
to it. It has a method called completed
through which you receive notifications that a page has been fully loaded.
Upvotes: 1
Reputation: 2070
You need handle the method changed() from LocationListener(http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/browser/ProgressListener.html) and test whether event.top is true
Upvotes: 2