Java: Fixed mnemonic in Extract Method preview (IDEA-190179)

This commit is contained in:
Pavel Dolgov
2018-04-18 13:55:05 +03:00
parent c0217d6694
commit 7394c8123f
2 changed files with 3 additions and 3 deletions
@@ -1,6 +1,7 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.refactoring.extractMethod.preview;
import com.intellij.ide.IdeBundle;
import com.intellij.ide.actions.exclusion.ExclusionHandler;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.actionSystem.CommonDataKeys;
@@ -184,7 +185,7 @@ class PreviewPanel extends BorderLayoutPanel implements Disposable, DataProvider
myRerunButton.addActionListener(e -> rerunRefactoring());
add(myRerunButton);
myCancelButton = new JButton(RefactoringBundle.message("refactoring.extract.method.preview.button.cancel"));
myCancelButton = new JButton(IdeBundle.message("button.cancel"));
DialogUtil.registerMnemonic(myRefactorButton);
myCancelButton.addActionListener(e -> close());
add(myCancelButton);
@@ -801,9 +801,8 @@ refactoring.extract.method.preview.command=Extracting method
refactoring.extract.method.preview.group.method=Method to extract
refactoring.extract.method.preview.group.original=Original code fragment
refactoring.extract.method.preview.group.duplicates=Duplicate code fragments
refactoring.extract.method.preview.button.refactor=Do &Refactor
refactoring.extract.method.preview.button.refactor=&Do Refactor
refactoring.extract.method.preview.button.rerun=R&erun Refactoring
refactoring.extract.method.preview.button.cancel=&Cancel
search.for.references=Search for re&ferences
0.is.not.an.identifier=<b><code>{0}</code></b> is not a correct identifier to use in <b><code>{1}</code></b>