IWorkbenchBrowserSupport browserSupport = Activator.getDefault().getWorkbench().getBrowserSupport(); IWebBrowser browser = browserSupport.createBrowser(IWorkbenchBrowserSupport.LOCATION_BAR, null,"Test", "Test"); URL url = new URL("www.google.com"); browser.openURL(url);
public void addLocationListener (LocationListener listener)
browser.addLocationListener(new LocationListener() { public void changed(LocationEvent event) { if (event.top) location.setText(event.location); } public void changing(LocationEvent event) { } });