diff options
author | Chris Goldthorpe | 2008-01-22 00:58:50 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2008-01-22 00:58:50 +0000 |
commit | ecb7f19b6d7027c9bcaab496da5ecc290cab1830 (patch) | |
tree | 51643c69d0ff3adab7bae23d16d5cb30ceca9780 /org.eclipse.help | |
parent | 65add3b1ef44ee2e10b4301f8907df2b297fd921 (diff) | |
download | eclipse.platform.ua-ecb7f19b6d7027c9bcaab496da5ecc290cab1830.tar.gz eclipse.platform.ua-ecb7f19b6d7027c9bcaab496da5ecc290cab1830.tar.xz eclipse.platform.ua-ecb7f19b6d7027c9bcaab496da5ecc290cab1830.zip |
Bug 216057 PLUGINS_ROOT does not work for link_to link
Diffstat (limited to 'org.eclipse.help')
-rw-r--r-- | org.eclipse.help/src/org/eclipse/help/internal/toc/HrefUtil.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/toc/HrefUtil.java b/org.eclipse.help/src/org/eclipse/help/internal/toc/HrefUtil.java index 495e59b3e..d41a7b7db 100644 --- a/org.eclipse.help/src/org/eclipse/help/internal/toc/HrefUtil.java +++ b/org.eclipse.help/src/org/eclipse/help/internal/toc/HrefUtil.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2006 IBM Corporation and others. + * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -13,6 +13,8 @@ package org.eclipse.help.internal.toc; import org.eclipse.core.runtime.Path; public class HrefUtil { + private static final String PLUGINS_ROOT_SLASH = "PLUGINS_ROOT/"; //$NON-NLS-1$ + /** * Creates /pluginid/directory from directory name */ @@ -57,6 +59,9 @@ public class HrefUtil { if (href.startsWith("../")) { //$NON-NLS-1$ return href.substring(2); } + if (href.startsWith(PLUGINS_ROOT_SLASH)) { + return href.substring(PLUGINS_ROOT_SLASH.length() - 1); + } if (href.length() > 0) { StringBuffer buf = new StringBuffer(2 + pluginID.length() + href.length()); |