Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-11-08 16:36:24 -0500
committerKarsten Thoms2017-11-08 16:36:24 -0500
commit8127b32ac942fb77fe4edda6ef5e1a982ec1c04a (patch)
treeedac12b274c7a20fde04ed71198ab8875ab95c27 /org.eclipse.ui.workbench.texteditor
parent4e0ad0c1c3cd6a3e0cb2a46f01ed9600aef09bd8 (diff)
downloadeclipse.platform.text-8127b32ac942fb77fe4edda6ef5e1a982ec1c04a.tar.gz
eclipse.platform.text-8127b32ac942fb77fe4edda6ef5e1a982ec1c04a.tar.xz
eclipse.platform.text-8127b32ac942fb77fe4edda6ef5e1a982ec1c04a.zip
Change-Id: Ieb6a5450b76c7a5305678f09ecb3785a7fe90c47 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor')
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java4
1 files changed, 2 insertions, 2 deletions
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 f8cdc2d1f..9dd27dffd 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
@@ -456,7 +456,7 @@ class FindReplaceDialog extends Dialog {
e.doit= false;
}
else if (e.detail == SWT.TRAVERSE_MNEMONIC) {
- Character mnemonic= new Character(Character.toLowerCase(e.character));
+ Character mnemonic= Character.valueOf(Character.toLowerCase(e.character));
if (fMnemonicButtonMap.containsKey(mnemonic)) {
Button button= fMnemonicButtonMap.get(mnemonic);
if ((fFindField.isFocusControl() || fReplaceField.isFocusControl() || (button.getStyle() & SWT.PUSH) != 0)
@@ -1285,7 +1285,7 @@ class FindReplaceDialog extends Dialog {
private void storeButtonWithMnemonicInMap(Button button) {
char mnemonic= LegacyActionTools.extractMnemonic(button.getText());
if (mnemonic != LegacyActionTools.MNEMONIC_NONE)
- fMnemonicButtonMap.put(new Character(Character.toLowerCase(mnemonic)), button);
+ fMnemonicButtonMap.put(Character.valueOf(Character.toLowerCase(mnemonic)), button);
}
/**

Back to the top