Prevents the location update and the display of the "location not found" dialog box
authorscorphus <scorphus>
Tue, 29 Jan 2008 22:36:48 +0000 (22:36 +0000)
committerscorphus <scorphus>
Tue, 29 Jan 2008 22:36:48 +0000 (22:36 +0000)
net.sourceforge.phpeclipse.phpmanual/src/net/sourceforge/phpeclipse/phpmanual/views/PHPManualView.java

index 37eadca..2d637c7 100644 (file)
@@ -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("<html></html>");
                                }
+                               event.doit = false;
                        }
                });
                parent.pack();