Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2012-08-07 15:16:28 +0000
committerDani Megert2012-08-07 15:16:28 +0000
commita68f0663f7fb088475c19b08c09c7907db4f7a7c (patch)
tree818fa6421b10cacd456ea21cbc2001fc1f6cd1ab /org.eclipse.text/src/org
parent06533d5a5344695e3851a1c885300efbf1cd2e11 (diff)
downloadeclipse.platform.text-a68f0663f7fb088475c19b08c09c7907db4f7a7c.tar.gz
eclipse.platform.text-a68f0663f7fb088475c19b08c09c7907db4f7a7c.tar.xz
eclipse.platform.text-a68f0663f7fb088475c19b08c09c7907db4f7a7c.zip
special char for non-regex search
Diffstat (limited to 'org.eclipse.text/src/org')
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java b/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java
index 957ff7b48..40bdd17a8 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java
@@ -166,12 +166,12 @@ public class FindReplaceDocumentAdapter implements CharSequence {
if (!caseSensitive)
patternFlags |= Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE;
+ if (!regExSearch)
+ findString= asRegPattern(findString);
+
if (wholeWord)
findString= "\\b" + findString + "\\b"; //$NON-NLS-1$ //$NON-NLS-2$
- if (!regExSearch && !wholeWord)
- findString= asRegPattern(findString);
-
fFindReplaceMatchOffset= startOffset;
if (fFindReplaceMatcher != null && fFindReplaceMatcher.pattern().pattern().equals(findString) && fFindReplaceMatcher.pattern().flags() == patternFlags) {
/*

Back to the top