Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2008-10-23 17:39:51 +0000
committerChris Goldthorpe2008-10-23 17:39:51 +0000
commita17b2933bc72af8b4f95df78620ea5dd15175575 (patch)
tree98fa547bd02a00f7a8a0ae5ae793945b699016be
parenta464b802638290ba5be54e40f1769e27f57f47cf (diff)
downloadeclipse.platform.ua-R3_4_1_maintenance_patches.tar.gz
eclipse.platform.ua-R3_4_1_maintenance_patches.tar.xz
eclipse.platform.ua-R3_4_1_maintenance_patches.zip
Bug 249850 – [Help][Search] Search results show JavaScript instead of page title - apply to patch streamv20081023_341patchR3_4_1_maintenance_patches
-rw-r--r--org.eclipse.help.base/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.help.base/src/org/eclipse/help/internal/search/XHTMLSearchParticipant.java12
2 files changed, 8 insertions, 6 deletions
diff --git a/org.eclipse.help.base/META-INF/MANIFEST.MF b/org.eclipse.help.base/META-INF/MANIFEST.MF
index 00b651c63..129548949 100644
--- a/org.eclipse.help.base/META-INF/MANIFEST.MF
+++ b/org.eclipse.help.base/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %help_base_plugin_name
Bundle-SymbolicName: org.eclipse.help.base; singleton:=true
-Bundle-Version: 3.3.101.qualifier
+Bundle-Version: 3.3.102.qualifier
Bundle-Activator: org.eclipse.help.internal.base.HelpBasePlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/search/XHTMLSearchParticipant.java b/org.eclipse.help.base/src/org/eclipse/help/internal/search/XHTMLSearchParticipant.java
index c34edaec6..1d4d60996 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/internal/search/XHTMLSearchParticipant.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/internal/search/XHTMLSearchParticipant.java
@@ -49,12 +49,14 @@ public class XHTMLSearchParticipant extends XMLSearchParticipant {
data.addText(text);
data.addToSummary(text);
} else if (path.segment(1).equalsIgnoreCase("head")) { //$NON-NLS-1$
- if (title == null) {
- title = text;
- } else {
- title = title + text;
+ if (path.segment(path.segmentCount() -1).equalsIgnoreCase("title")) { //$NON-NLS-1$
+ if (title == null) {
+ title = text;
+ } else {
+ title = title + text;
+ }
+ data.setTitle(title);
}
- data.setTitle(title);
}
}

Back to the top