Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.search/new search/org/eclipse/search2/internal/ui/text2/DefaultTextSearchQueryProvider.java')
-rw-r--r--org.eclipse.search/new search/org/eclipse/search2/internal/ui/text2/DefaultTextSearchQueryProvider.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text2/DefaultTextSearchQueryProvider.java b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text2/DefaultTextSearchQueryProvider.java
index 96332ed2150..4f7f859e2e2 100644
--- a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text2/DefaultTextSearchQueryProvider.java
+++ b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/text2/DefaultTextSearchQueryProvider.java
@@ -1,12 +1,13 @@
/*******************************************************************************
- * Copyright (c) 2006, 2008 Wind River Systems, IBM Corporation and others.
+ * Copyright (c) 2006, 2013 Wind River Systems, 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Markus Schorn - initial API and implementation
+ * Markus Schorn - initial API and implementation
+ * Christian Walther (Indel AG) - Bug 399094: Add whole word option to file search
*******************************************************************************/
package org.eclipse.search2.internal.ui.text2;
@@ -30,7 +31,8 @@ public class DefaultTextSearchQueryProvider extends TextSearchQueryProvider {
String text= input.getSearchText();
boolean regEx= input.isRegExSearch();
boolean caseSensitive= input.isCaseSensitiveSearch();
- return new FileSearchQuery(text, regEx, caseSensitive, scope);
+ boolean wholeWord= input.isWholeWordSearch();
+ return new FileSearchQuery(text, regEx, caseSensitive, wholeWord, scope);
}
/* (non-Javadoc)

Back to the top