Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDejan Gloszic2006-04-06 18:47:50 -0400
committerDejan Gloszic2006-04-06 18:47:50 -0400
commit096107b32174215455e35513db39595367a93593 (patch)
tree93fd91cbbb8b01e282de8367f181342db69f935b /org.eclipse.help
parent663d9374f8e569f4d793e4261ce9b9cb130fc7fd (diff)
downloadeclipse.platform.ua-096107b32174215455e35513db39595367a93593.tar.gz
eclipse.platform.ua-096107b32174215455e35513db39595367a93593.tar.xz
eclipse.platform.ua-096107b32174215455e35513db39595367a93593.zip
Added support for absolute path with PLUGINS_ROOT/ prefix.
Diffstat (limited to 'org.eclipse.help')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/protocols/HelpURLConnection.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/protocols/HelpURLConnection.java b/org.eclipse.help/src/org/eclipse/help/internal/protocols/HelpURLConnection.java
index 992eda685..f8b260cb1 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/protocols/HelpURLConnection.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/protocols/HelpURLConnection.java
@@ -24,6 +24,7 @@ public class HelpURLConnection extends URLConnection {
private final static String LANG = "lang"; //$NON-NLS-1$
private final static String PRODUCT_PLUGIN = "PRODUCT_PLUGIN"; //$NON-NLS-1$
+ private final static String PLUGINS_ROOT = "PLUGINS_ROOT/"; //$NON-NLS-1$
// document caching - disabled if running in dev mode
protected static boolean cachingEnabled = true;
static {
@@ -53,6 +54,10 @@ public class HelpURLConnection extends URLConnection {
String urlFile = url.getFile();
+ // Strip off everything before and including the PLUGINS_ROOT
+ int index = urlFile.indexOf(PLUGINS_ROOT);
+ if (index!= -1)
+ urlFile = urlFile.substring(index+PLUGINS_ROOT.length());
// Strip off the leading "/" and the query
if (urlFile.startsWith("/")) //$NON-NLS-1$
urlFile = urlFile.substring(1);

Back to the top