From 7bd69591dcbc7c459df2c4a81ced4aaabb9d555f Mon Sep 17 00:00:00 2001 From: scorphus Date: Tue, 29 Jan 2008 22:36:48 +0000 Subject: [PATCH 1/1] Prevents the location update and the display of the "location not found" dialog box --- .../phpeclipse/phpmanual/views/PHPManualView.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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(); -- 1.7.1