X-Git-Url: http://git.phpeclipse.com 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 b4ff23c..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:///", ""); @@ -107,13 +107,15 @@ public class PHPManualView extends ViewPart implements INullSelectionListener, I String[] afunc = loc.split("\\."); if(!afunc[1].equalsIgnoreCase(lastOccurrence)) { lastOccurrence = afunc[1]; - // TODO find a better way of not showing the location error page. This is a cheap trick - // to keep the page from showing. - // ed_mann - browser.setText(""); showLinkReference(func); } + } else if (loc.startsWith("jar:")) { + // TODO find a better way of not showing the location error page. This is a cheap trick + // to keep the page from showing. + // ed_mann + browser.setText(""); } + event.doit = false; } }); parent.pack();