IDEA-247912 i18n: annotate `setTextAndMnemonicAndListeners` by `@NlsContexts.Button`
authorDmitry.Krasilschikov <kradima@jetbrains.com>
Tue, 11 Aug 2020 14:23:12 +0000 (17:23 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Tue, 11 Aug 2020 14:25:31 +0000 (14:25 +0000)
GitOrigin-RevId: b56cec164e0466c1d38e19cf3a418bce0f43949e

platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/NonProjectFileWritingAccessDialog.java

index 364c2b6905c0b8b105e45f51db09e0ba0d4e0698..43962380d95ec492aed3c0ca4abe51d9bf8a7cbb 100644 (file)
@@ -4,6 +4,7 @@ package com.intellij.openapi.fileEditor.impl;
 import com.intellij.ide.IdeBundle;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.ui.DialogWrapper;
+import com.intellij.openapi.util.NlsContexts;
 import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.openapi.vcs.readOnlyHandler.FileListRenderer;
 import com.intellij.openapi.vcs.readOnlyHandler.ReadOnlyStatusDialog;
@@ -64,7 +65,7 @@ public class NonProjectFileWritingAccessDialog extends DialogWrapper {
     init();
   }
 
-  private void setTextAndMnemonicAndListeners(JRadioButton button, String text, String mnemonic) {
+  private void setTextAndMnemonicAndListeners(JRadioButton button, @NlsContexts.Button String text, String mnemonic) {
     button.setText(text);
     button.setMnemonic(mnemonic.charAt(0));
     button.setDisplayedMnemonicIndex(button.getText().indexOf(mnemonic));