Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Intercept Clicked Link's String in SWT Browser?

Hi,

you can add a LocationListener to the browser widget:

browser.addLocationListener(new LocationListener() {
           public void changed(LocationEvent event) {
              // postprocessing
           }
public void changing(LocationEvent event) {
               // preprocessing
String newLoc = event.location; // This is the link, the user selected
               // do whatever you want...
           }
});
HTH,
Philipp

Is there a way to grab the string of a link a user clicks in the SWT
Browser?  We would like to be able to intercept this information and do
some background processing before displaying the page requested. Further, it would allow us to parse the string and determine what type
of file was requested (to be able to proceed accordingly).

Anyone know how to do such a thing?

Thanks
Michael
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev




Back to the top