From: scorphus Date: Tue, 29 Jan 2008 22:36:48 +0000 (+0000) Subject: Prevents the location update and the display of the "location not found" dialog box X-Git-Url: http://git.phpeclipse.com?hp=78a7d038232f7d563b8c5f26bad2e431ef5532f1 Prevents the location update and the display of the "location not found" dialog box --- diff --git a/net.sourceforge.phpeclipse.phpmanual/src/net/sourceforge/phpeclipse/phpmanual/views/PHPManualView.java b/net.sourceforge.phpeclipse.phpmanual/src/net/sourceforge/phpeclipse/phpmanual/views/PHPManualView.java index 37eadca..2d637c7 100644 --- a/net.sourceforge.phpeclipse.phpmanual/src/net/sourceforge/phpeclipse/phpmanual/views/PHPManualView.java +++ b/net.sourceforge.phpeclipse.phpmanual/src/net/sourceforge/phpeclipse/phpmanual/views/PHPManualView.java @@ -99,7 +99,7 @@ public class PHPManualView extends ViewPart implements INullSelectionListener, I public void createPartControl(Composite parent) { browser = new Browser(parent, SWT.NONE); browser.addLocationListener(new LocationAdapter(){ - public void changing(LocationEvent event){ + public void changing(LocationEvent event) { String loc = event.location.toString(); if(!loc.equalsIgnoreCase("about:blank") && !loc.startsWith("jar:")){ String func = loc.replaceAll("file:///", ""); @@ -115,6 +115,7 @@ public class PHPManualView extends ViewPart implements INullSelectionListener, I // ed_mann browser.setText(""); } + event.doit = false; } }); parent.pack();