diff options
author | Chris Goldthorpe | 2009-02-26 18:39:03 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2009-02-26 18:39:03 +0000 |
commit | 59c79c68ab516899cf8b57ef81dccf971d5d0836 (patch) | |
tree | ff84f211f85060a9a046492e6c52cf2131abc24f /org.eclipse.help | |
parent | 34f450f11f521feea192e08da9a44023e915018c (diff) | |
download | eclipse.platform.ua-59c79c68ab516899cf8b57ef81dccf971d5d0836.tar.gz eclipse.platform.ua-59c79c68ab516899cf8b57ef81dccf971d5d0836.tar.xz eclipse.platform.ua-59c79c68ab516899cf8b57ef81dccf971d5d0836.zip |
Bug 178554 [Help][Search] Reduced Search Scope, Mouse-Over Text and "Show in Table of Contents" button not working:
Diffstat (limited to 'org.eclipse.help')
-rw-r--r-- | org.eclipse.help/src/org/eclipse/help/internal/toc/Toc.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/toc/Toc.java b/org.eclipse.help/src/org/eclipse/help/internal/toc/Toc.java index c352a8a32..fe4b633e9 100644 --- a/org.eclipse.help/src/org/eclipse/help/internal/toc/Toc.java +++ b/org.eclipse.help/src/org/eclipse/help/internal/toc/Toc.java @@ -73,6 +73,13 @@ public class Toc extends UAElement implements IToc { String href = topic.getHref(); if (href != null) { map.put(href, topic); + int anchorIx = href.lastIndexOf("#"); //$NON-NLS-1$ + if (anchorIx >= 0) { //anchor exists, drop it and add + String simpleHref = href.substring(0, anchorIx); + if (!map.containsKey(simpleHref)) { + map.put(simpleHref, topic); + } + } } ITopic[] subtopics = topic.getSubtopics(); if (subtopics != null) { |