From 12a58d40cd5b47787f00b7bd6707b97f4e1da5e6 Mon Sep 17 00:00:00 2001 From: Edward Mann Date: Mon, 28 Jan 2008 16:23:44 +0000 Subject: [PATCH 1/1] I broke the build using loc.replace in PHPManualView.java. I changed this to replaceAll. Either function worked on local testing, but the build failed. I feel this will allow the build to work, and the ManualView to function. --- .../phpeclipse/phpmanual/views/PHPManualView.java | 4 ++-- 1 files changed, 2 insertions(+), 2 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 8c8123a..b4ff23c 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 @@ -101,8 +101,8 @@ public class PHPManualView extends ViewPart implements INullSelectionListener, I browser.addLocationListener(new LocationAdapter(){ public void changing(LocationEvent event){ String loc = event.location.toString(); - if(!loc.equalsIgnoreCase("about:blank")){ - String func = loc.replace("file:///", ""); + if(!loc.equalsIgnoreCase("about:blank") && !loc.startsWith("jar:")){ + String func = loc.replaceAll("file:///", ""); func = func.replaceAll("#.+$", ""); String[] afunc = loc.split("\\."); if(!afunc[1].equalsIgnoreCase(lastOccurrence)) { -- 1.7.1