Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaroslav Nikolaiko2014-08-08 11:44:11 +0000
committerDani Megert2014-08-08 11:47:47 +0000
commit697cdb43884256ac395f7afb0dd7da84b6eec333 (patch)
tree1e0d74923ea59c22fd4bc43dfde788d6bdead685 /org.eclipse.help.base
parent83658c506c79b166c60322cdbc0a2d4df1bb1ba7 (diff)
downloadeclipse.platform.ua-697cdb43884256ac395f7afb0dd7da84b6eec333.tar.gz
eclipse.platform.ua-697cdb43884256ac395f7afb0dd7da84b6eec333.tar.xz
eclipse.platform.ua-697cdb43884256ac395f7afb0dd7da84b6eec333.zip
Fixed bug 441407: [webapp][base] Bugs related to Search Scope for filtering content in The Eclipse platform's help infocenterI20140826-0800I20140819-2200I20140819-1800I20140819-1200I20140819-0800I20140812-0800
Signed-off-by: Yaroslav Nikolaiko <nikolaiko.yaroslav@gmail.com>
Diffstat (limited to 'org.eclipse.help.base')
-rw-r--r--org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchResults.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchResults.java b/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchResults.java
index 1d2c59b37..6a158ec8d 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchResults.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchResults.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2014 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
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Yaroslav Nikolaiko <nikolaiko.yaroslav@gmail.com> - [webapp][base] Bugs related to Search Scope for filtering content in The Eclipse platform's help infocenter - http://bugs.eclipse.org/441407
*******************************************************************************/
package org.eclipse.help.internal.search;
@@ -231,7 +232,9 @@ public class SearchResults implements ISearchHitCollector {
// Test for href attached to Toc element
topic = nextToc.getTopic(null);
if (topic != null && href != null && href.equals(topic.getHref())) {
- return nextToc;
+ if (filter == null || filter.inScope(topic)) {
+ return nextToc;
+ }
}
}
if (!foundInToc) {

Back to the top