public void addLocationListener( LocationListener listener ) { browser.addLocationListener( listener ); }
private void addProgressAndLocationListener() { ProgressListener progressListener = new ProgressListener() { @Override public void changed( ProgressEvent event ) { } @Override public void completed( ProgressEvent event ) { if ( fromPrint ) { wBrowser.execute( PRINT_SCRIPT ); fromPrint = false; } setForwardBackEnable(); } }; LocationListener listener = new LocationListener() { @Override public void changing( LocationEvent event ) { if ( event.location.endsWith( ".pdf" ) ) { Program.launch( event.location ); event.doit = false; } } @Override public void changed( LocationEvent event ) { textURL.setText( event.location ); } }; wBrowser.addProgressListener( progressListener ); wBrowser.addLocationListener( listener ); }
browser.addLocationListener( locationListener ); browser.addLocationListener( listener );
/** * Adds the listener to the collection of listeners who will be * notified when the current location has changed or is about to change. * * @param listener the location listener * @since 3.4 */ public void addLocationListener(LocationListener listener) { fBrowser.addLocationListener(listener); }
/** * Adds the listener to the collection of listeners who will be * notified when the current location has changed or is about to change. * * @param listener the location listener * @since 3.4 */ public void addLocationListener(LocationListener listener) { fBrowser.addLocationListener(listener); }
@Override public void addLocationListener( LocationListener l ) { browser.addLocationListener( l ); }
browser.addLocationListener(JavaElementLinks.createLocationListener(new JavaElementLinks.ILinkHandler() {
browser.addLocationListener(JavaElementLinks.createLocationListener(new JavaElementLinks.ILinkHandler() {
private void displayURLExternal(WindowEvent e) { if (externalBrowser == null) { final Shell externalShell = new Shell(shell, SWT.NONE); externalBrowser = new Browser(externalShell, SWT.NONE); externalBrowser.addLocationListener(new LocationAdapter() { public void changing(final LocationEvent e) { e.doit = false; try { BaseHelpSystem.getHelpBrowser(true).displayURL(e.location); } catch (Throwable t) { String msg = "Error opening external Web browser"; //$NON-NLS-1$ HelpUIPlugin.logError(msg, t); } } }); } e.browser = externalBrowser; } public boolean isDisposed() {
browser.addLocationListener(new LocationListener() { public void changing(LocationEvent event) { System.out.println(event);
browser.addLocationListener (new LocationAdapter () { @Override public void changing (LocationEvent event) {
browser.addLocationListener(new LocationListener(){ public void changed(LocationEvent e){
browser.setLayoutData(new GridData(GridData.FILL_BOTH)); browser.setText(html); browser.addLocationListener(JavaElementLinks .createLocationListener(new JavaElementLinks.ILinkHandler() {
public BrowserPart(final Composite parent, FormToolkit toolkit, final IToolBarManager tbm) { browser = new Browser(parent, SWT.NULL); browser.addLocationListener(new LocationListener() { public void changing(LocationEvent event) { if (redirectLink(event.location))
dialog.create(); dialog.getBrowser().addLocationListener(new LocationAdapter() { @Override public void changing(LocationEvent event) {
event.browser = browser; browser.addLocationListener(new LocationListener() { public void changing(LocationEvent e) {
browser.addLocationListener(new LocationListener() { public void changing(LocationEvent event) {
browser.addLocationListener(new LocationListener() {
browser.addLocationListener(urlListener);
browser.addLocationListener (new LocationListener () { @Override public void changed(LocationEvent event) {