Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2003-09-24 08:43:59 +0000
committerDani Megert2003-09-24 08:43:59 +0000
commit4c38d205b3ab55453119fe68cb007b99e41214c8 (patch)
tree8ac21014dfbc3ffef6ee833e7e01115d7fab8e53
parentb0c8d12db096632bdd1dfd01c3073ccf9d561a3c (diff)
downloadeclipse.platform.text-4c38d205b3ab55453119fe68cb007b99e41214c8.tar.gz
eclipse.platform.text-4c38d205b3ab55453119fe68cb007b99e41214c8.tar.xz
eclipse.platform.text-4c38d205b3ab55453119fe68cb007b99e41214c8.zip
NLS for RegEx find/replace
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorMessages.properties1
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java6
2 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorMessages.properties b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorMessages.properties
index 4381acbd9..042b0a30c 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorMessages.properties
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorMessages.properties
@@ -320,6 +320,7 @@ FindReplace.CaseCheckBox.label=&Case Sensitive
FindReplace.WrapCheckBox.label=Wra&p Search
FindReplace.WholeWordCheckBox.label=&Whole Word
FindReplace.IncrementalCheckBox.label=&Incremental
+FindReplace.RegExCheckbox.label=Search string is a regular e&xpression
FindReplace.FindNextButton.label=Fi&nd
FindReplace.ReplaceFindButton.label=Replace/Fin&d
FindReplace.ReplaceSelectionButton.label=&Replace
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java
index 238e79ab9..a3c2a15ad 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java
@@ -30,8 +30,8 @@ import org.eclipse.swt.events.ShellAdapter;
import org.eclipse.swt.events.ShellEvent;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
-import org.eclipse.swt.layout.*;
-
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
@@ -649,7 +649,7 @@ class FindReplaceDialog extends Dialog {
});
fIsRegExCheckBox= new Button(group, SWT.CHECK | SWT.LEFT);
- fIsRegExCheckBox.setText("Search string is a regular e&xpression");
+ fIsRegExCheckBox.setText(EditorMessages.getString("FindReplace.RegExCheckbox.label")); //$NON-NLS-1$
setGridData(fIsRegExCheckBox, GridData.BEGINNING, false, GridData.CENTER, false);
((GridData)fIsRegExCheckBox.getLayoutData()).horizontalSpan= 2;
fIsRegExCheckBox.setSelection(fIsRegExInit);

Back to the top