localize `Presentation.setDescription(String)`
authorDmitry.Krasilschikov <kradima@jetbrains.com>
Tue, 28 Jan 2020 16:36:31 +0000 (18:36 +0200)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Tue, 28 Jan 2020 17:37:10 +0000 (17:37 +0000)
GitOrigin-RevId: 1fdb333a795e9e1ade912700fb42876bba1c28f1

48 files changed:
java/idea-ui/src/com/intellij/ide/actions/TemplateProjectStructureAction.java
java/idea-ui/src/com/intellij/openapi/externalSystem/action/AttachExternalProjectAction.java
platform/execution-impl/src/com/intellij/execution/actions/RunConfigurationsComboBoxAction.java
platform/external-system-impl/src/com/intellij/openapi/externalSystem/action/DetachExternalProjectAction.java
platform/external-system-impl/src/com/intellij/openapi/externalSystem/action/IgnoreExternalProjectAction.java
platform/external-system-impl/src/com/intellij/openapi/externalSystem/action/OpenExternalConfigAction.java
platform/external-system-impl/src/com/intellij/openapi/externalSystem/action/OpenTasksActivationManagerAction.java
platform/external-system-impl/src/com/intellij/openapi/externalSystem/action/RefreshAllExternalProjectsAction.java
platform/external-system-impl/src/com/intellij/openapi/externalSystem/action/RefreshExternalProjectAction.java
platform/external-system-impl/src/com/intellij/openapi/externalSystem/action/ShowExternalSystemSettingsAction.java
platform/external-system-impl/src/com/intellij/openapi/externalSystem/util/ExternalSystemUtil.java
platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/action/AddArrangementRuleAction.java
platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/action/AddArrangementSectionRuleAction.java
platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/action/EditArrangementRuleAction.java
platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/action/EditRuleAliasesDefinitionAction.java
platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/action/MoveArrangementGroupingRuleDownAction.java
platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/action/MoveArrangementGroupingRuleUpAction.java
platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/action/MoveArrangementMatchingRuleDownAction.java
platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/action/MoveArrangementMatchingRuleUpAction.java
platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/action/RemoveArrangementRuleAction.java
platform/lang-impl/src/com/intellij/execution/dashboard/actions/DebugAction.java
platform/lang-impl/src/com/intellij/execution/dashboard/actions/RunAction.java
platform/lang-impl/src/com/intellij/ide/actions/GotoClassAction.java
platform/lang-impl/src/com/intellij/ide/favoritesTreeView/actions/FavoritesCompactEmptyMiddlePackagesAction.java
platform/lang-impl/src/com/intellij/ide/projectView/actions/MarkSourceRootAction.java
platform/lang-impl/src/com/intellij/openapi/roots/ui/configuration/actions/ToggleExcludedStateAction.java
platform/lang-impl/src/com/intellij/openapi/roots/ui/configuration/actions/ToggleSourcesStateAction.java
platform/lang-impl/src/com/intellij/testIntegration/GotoTestOrCodeAction.java
platform/platform-impl/src/com/intellij/ide/actions/ActivateToolWindowAction.java
platform/platform-impl/src/com/intellij/ide/actions/SendFeedbackAction.java
platform/platform-impl/src/com/intellij/ide/actions/TabNavigationActionBase.java
platform/platform-impl/src/com/intellij/ide/actions/TemplateProjectPropertiesAction.java
platform/platform-impl/src/com/intellij/ide/actions/WhatsNewAction.java
platform/platform-impl/src/com/intellij/openapi/editor/actions/RemoveBomAction.java
platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/CheckForUpdateAction.java
platform/testRunner/src/com/intellij/execution/testframework/ToolbarPanel.java
platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/RestoreShelvedChange.java
platform/vcs-impl/src/com/intellij/openapi/vcs/history/actions/CompareRevisionsAction.java
platform/vcs-impl/src/com/intellij/openapi/vcs/history/actions/CreatePatchFromDirectoryAction.java
plugins/ant/src/com/intellij/lang/ant/config/explorer/AntExplorer.java
plugins/gradle-maven/src/org/jetbrains/plugins/gradle/integrations/maven/codeInsight/actions/AddGradleDslDependencyAction.java
plugins/gradle/java/src/codeInsight/actions/AddGradleDslPluginAction.java
plugins/gradle/src/org/jetbrains/plugins/gradle/action/GradleRefreshProjectDependenciesAction.java
plugins/svn4idea/src/org/jetbrains/idea/svn/actions/AbstractIntegrateChangesAction.java
plugins/svn4idea/src/org/jetbrains/idea/svn/actions/RemoveFromIgnoreListAction.java
plugins/svn4idea/src/org/jetbrains/idea/svn/dialogs/RepositoryBrowserDialog.java
plugins/ui-designer/src/com/intellij/uiDesigner/actions/ChooseLocaleAction.java

index e08c1f8f46e7ef176e73eac9257480b35c60d199..ccc997fb578e24658a8112d1906f16bb463ed66e 100644 (file)
@@ -13,7 +13,7 @@ public class TemplateProjectStructureAction extends ShowStructureSettingsAction
   public TemplateProjectStructureAction() {
     String projectConceptName = StringUtil.capitalize(IdeUICustomization.getInstance().getProjectConceptName());
     getTemplatePresentation().setText(() -> ActionsBundle.message("action.TemplateProjectStructure.text.template", projectConceptName));
-    getTemplatePresentation().setDescription(ActionsBundle.message("action.TemplateProjectStructure.description.template", projectConceptName));
+    getTemplatePresentation().setDescription(() -> ActionsBundle.message("action.TemplateProjectStructure.description.template", projectConceptName));
   }
 
   @Override
index 90ffcd21966366e6530b706661796d549edc8f53..a65f9c314b5c2c894d4f9c9d3652d15af9dce7b7 100644 (file)
@@ -25,7 +25,7 @@ public class AttachExternalProjectAction extends DumbAwareAction {
 
   public AttachExternalProjectAction() {
     getTemplatePresentation().setText(() -> ExternalSystemBundle.message("action.attach.external.project.text", "External"));
-    getTemplatePresentation().setDescription(ExternalSystemBundle.message("action.attach.external.project.description", "external"));
+    getTemplatePresentation().setDescription(() -> ExternalSystemBundle.message("action.attach.external.project.description", "external"));
   }
 
   @Override
@@ -35,7 +35,7 @@ public class AttachExternalProjectAction extends DumbAwareAction {
     if (externalSystemId != null) {
       String name = externalSystemId.getReadableName();
       presentation.setText(() -> ExternalSystemBundle.message("action.attach.external.project.text", name));
-      presentation.setDescription(ExternalSystemBundle.message("action.attach.external.project.description", name));
+      presentation.setDescription(() -> ExternalSystemBundle.message("action.attach.external.project.description", name));
     }
 
     presentation.setIcon(AllIcons.General.Add);
index f87ec7db740dcd8d65ba5289f81f25819dde0c97..95c0a76cec1235a5a4274c92c6fba1f2d8fd821a 100644 (file)
@@ -48,7 +48,7 @@ public class RunConfigurationsComboBoxAction extends ComboBoxAction implements D
     Presentation presentation = e.getPresentation();
     Project project = e.getData(CommonDataKeys.PROJECT);
     if (ActionPlaces.isMainMenuOrActionSearch(e.getPlace())) {
-      presentation.setDescription(ExecutionBundle.message("choose.run.configuration.action.description"));
+      presentation.setDescription(() -> ExecutionBundle.message("choose.run.configuration.action.description"));
     }
     try {
       if (project == null || project.isDisposed() || !project.isOpen()) {
index 1d83bc6c443c79c7427d125f1216fc89366a30cd..1b9b130baa24a42ec14e74514491dbd02948b84d 100644 (file)
@@ -30,7 +30,7 @@ public class DetachExternalProjectAction extends ExternalSystemNodeAction<Projec
   public DetachExternalProjectAction() {
     super(ProjectData.class);
     getTemplatePresentation().setText(() -> ExternalSystemBundle.message("action.detach.external.project.text", "External"));
-    getTemplatePresentation().setDescription(ExternalSystemBundle.message("action.detach.external.project.description"));
+    getTemplatePresentation().setDescription(() -> ExternalSystemBundle.message("action.detach.external.project.description"));
     getTemplatePresentation().setIcon(AllIcons.General.Remove);
   }
 
index 3d35ed3651e0c1ba3425cba713ff403d91af4f81..a271c76e37d608a232fcecda1cbe9c657d9f575c 100644 (file)
@@ -40,7 +40,7 @@ public class IgnoreExternalProjectAction extends ExternalSystemToggleAction {
   public IgnoreExternalProjectAction() {
     getTemplatePresentation().setText(() -> ExternalSystemBundle.message("action.ignore.external.projects.text", "External", 1));
     getTemplatePresentation()
-      .setDescription(ExternalSystemBundle.message("action.ignore.external.projects.description", "external", 1));
+      .setDescription(() -> ExternalSystemBundle.message("action.ignore.external.projects.description", "external", 1));
   }
 
   @Override
index f4049ccf65dacc0814c8e510f8cef3d3e3d5ef69..1971389062b01dc6fe46509565d2588d7c99cc2d 100644 (file)
@@ -20,7 +20,7 @@ public class OpenExternalConfigAction extends ExternalSystemNodeAction<ExternalC
   public OpenExternalConfigAction() {
     super(ExternalConfigPathAware.class);
     getTemplatePresentation().setText(() -> ExternalSystemBundle.message("action.open.config.text", "External"));
-    getTemplatePresentation().setDescription(ExternalSystemBundle.message("action.open.config.description", "external"));
+    getTemplatePresentation().setDescription(() -> ExternalSystemBundle.message("action.open.config.description", "external"));
   }
 
   @Override
@@ -35,7 +35,7 @@ public class OpenExternalConfigAction extends ExternalSystemNodeAction<ExternalC
 
     ProjectSystemId externalSystemId = getSystemId(e);
     e.getPresentation().setText(() -> ExternalSystemBundle.message("action.open.config.text", externalSystemId.getReadableName()));
-    e.getPresentation().setDescription(ExternalSystemBundle.message("action.open.config.description", externalSystemId.getReadableName()));
+    e.getPresentation().setDescription(() -> ExternalSystemBundle.message("action.open.config.description", externalSystemId.getReadableName()));
     final ExternalSystemUiAware uiAware = getExternalSystemUiAware(e);
     if (uiAware != null) {
       e.getPresentation().setIcon(uiAware.getProjectIcon());
index ac90711b3b2459d6b112dd59764a2896b358fac4..a43ce595cee8ddf4b89739680e42af743cedefad 100644 (file)
@@ -27,7 +27,7 @@ public class OpenTasksActivationManagerAction extends ExternalSystemNodeAction<A
     super(AbstractExternalEntityData.class);
     getTemplatePresentation().setText(() -> ExternalSystemBundle.message("external.system.task.activation.title"));
     getTemplatePresentation().setDescription(
-      ExternalSystemBundle.message("external.system.task.activation.description", "external system"));
+      () -> ExternalSystemBundle.message("external.system.task.activation.description", "external system"));
   }
 
   @Override
@@ -40,7 +40,7 @@ public class OpenTasksActivationManagerAction extends ExternalSystemNodeAction<A
     ProjectSystemId projectSystemId = getSystemId(e);
     e.getPresentation().setText(() -> ExternalSystemBundle.message("external.system.task.activation.title"));
     e.getPresentation().setDescription(
-      ExternalSystemBundle.message("external.system.task.activation.description", projectSystemId.getReadableName()));
+      () -> ExternalSystemBundle.message("external.system.task.activation.description", projectSystemId.getReadableName()));
     final boolean isProjectNode = externalData instanceof ProjectData || externalData instanceof ModuleData;
     return isProjectNode && StringUtil.isNotEmpty(((ExternalConfigPathAware) externalData).getLinkedExternalProjectPath());
   }
index 62735760322653be224aadcdb3b4cdeeedb578cc..84c64cdd23e73a4bc061fd9e7767081ea00adfcc 100644 (file)
@@ -31,7 +31,7 @@ import java.util.List;
 public class RefreshAllExternalProjectsAction extends AnAction implements AnAction.TransparentUpdate, DumbAware {
   public RefreshAllExternalProjectsAction() {
     getTemplatePresentation().setText(() -> ExternalSystemBundle.message("action.refresh.all.projects.text", "External"));
-    getTemplatePresentation().setDescription(ExternalSystemBundle.message("action.refresh.all.projects.description", "external"));
+    getTemplatePresentation().setDescription(() -> ExternalSystemBundle.message("action.refresh.all.projects.description", "external"));
   }
 
   @Override
@@ -50,7 +50,7 @@ public class RefreshAllExternalProjectsAction extends AnAction implements AnActi
 
     final String name = StringUtil.join(systemIds, projectSystemId -> projectSystemId.getReadableName(), ",");
     e.getPresentation().setText(() -> ExternalSystemBundle.message("action.refresh.all.projects.text", name));
-    e.getPresentation().setDescription(ExternalSystemBundle.message("action.refresh.all.projects.description", name));
+    e.getPresentation().setDescription(() -> ExternalSystemBundle.message("action.refresh.all.projects.description", name));
 
     ExternalSystemProcessingManager processingManager = ServiceManager.getService(ExternalSystemProcessingManager.class);
     e.getPresentation().setEnabled(!processingManager.hasTaskOfTypeInProgress(ExternalSystemTaskType.RESOLVE_PROJECT, project));
index 3a74872084d228752827e6ef51ca0143378adfb1..c02efd13bbe176b644c704bfe5c7146f2fa73a6e 100644 (file)
@@ -33,7 +33,7 @@ public class RefreshExternalProjectAction extends ExternalSystemNodeAction<Abstr
   public RefreshExternalProjectAction() {
     super(AbstractExternalEntityData.class);
     getTemplatePresentation().setText(() -> ExternalSystemBundle.message("action.refresh.project.text", "External"));
-    getTemplatePresentation().setDescription(ExternalSystemBundle.message("action.refresh.project.description", "External"));
+    getTemplatePresentation().setDescription(() -> ExternalSystemBundle.message("action.refresh.project.description", "External"));
   }
 
   @Override
@@ -46,7 +46,7 @@ public class RefreshExternalProjectAction extends ExternalSystemNodeAction<Abstr
     final String systemIdNameDescription = systemId != null ? systemId.getReadableName() : "external";
     Presentation presentation = e.getPresentation();
     presentation.setText(() -> ExternalSystemBundle.message("action.refresh.project.text", systemIdNameText));
-    presentation.setDescription(ExternalSystemBundle.message("action.refresh.project.description", systemIdNameDescription));
+    presentation.setDescription(() -> ExternalSystemBundle.message("action.refresh.project.description", systemIdNameDescription));
   }
 
   @Override
index cf626633039931995c9896d8fcd9b2981d6de7c2..2481ed534cd95fbac03717871edba7ce7688d857 100644 (file)
@@ -30,7 +30,7 @@ public class ShowExternalSystemSettingsAction extends ExternalSystemAction {
 
   public ShowExternalSystemSettingsAction() {
     getTemplatePresentation().setText(() -> ExternalSystemBundle.message("action.open.settings.text", "External"));
-    getTemplatePresentation().setDescription(ExternalSystemBundle.message("action.open.settings.description", "external"));
+    getTemplatePresentation().setDescription(() -> ExternalSystemBundle.message("action.open.settings.description", "external"));
   }
 
   @Override
@@ -41,7 +41,7 @@ public class ShowExternalSystemSettingsAction extends ExternalSystemAction {
     if (systemId == null) return false;
 
     e.getPresentation().setText(() -> ExternalSystemBundle.message("action.open.settings.text", systemId.getReadableName()));
-    e.getPresentation().setDescription(ExternalSystemBundle.message("action.open.settings.description", systemId.getReadableName()));
+    e.getPresentation().setDescription(() -> ExternalSystemBundle.message("action.open.settings.description", systemId.getReadableName()));
     return true;
   }
 
index 5f5d2ab1e7b4e7ef423236bd6f947b8efc7bfe2c..1fd50914e2fed4bc6a5bb81992d4f64a5e616e91 100644 (file)
@@ -450,7 +450,7 @@ public final class ExternalSystemUtil {
               String systemId = id.getProjectSystemId().getReadableName();
               rerunImportAction.getTemplatePresentation().setText(() -> ExternalSystemBundle.message("action.refresh.project.text", systemId));
               rerunImportAction.getTemplatePresentation()
-                .setDescription(ExternalSystemBundle.message("action.refresh.project.description", systemId));
+                .setDescription(() -> ExternalSystemBundle.message("action.refresh.project.description", systemId));
               rerunImportAction.getTemplatePresentation().setIcon(AllIcons.Actions.Refresh);
 
               if (isPreviewMode) return;
index 6e378c1dc8ef8b24e427a9fb2ad63dfbc8e3d87b..e91eb8d519a136752e94f3cc52d4b272388d6b31 100644 (file)
@@ -32,7 +32,7 @@ public class AddArrangementRuleAction extends AbstractArrangementRuleAction impl
   
   public AddArrangementRuleAction() {
     getTemplatePresentation().setText(() -> ApplicationBundle.message("arrangement.action.rule.add.text"));
-    getTemplatePresentation().setDescription(ApplicationBundle.message("arrangement.action.rule.add.description"));
+    getTemplatePresentation().setDescription(() -> ApplicationBundle.message("arrangement.action.rule.add.description"));
     getTemplatePresentation().setIcon(IconUtil.getAddIcon());
     setEnabledInModalContext(true);
   }
index 5dfb991e046930ed7505395da2e26f3e80add4c3..f94104bb5a5d193067eff925ec5e8314db1b24cf 100644 (file)
@@ -30,7 +30,7 @@ public class AddArrangementSectionRuleAction extends AddArrangementRuleAction {
 
   public AddArrangementSectionRuleAction() {
     getTemplatePresentation().setText(() -> ApplicationBundle.message("arrangement.action.section.rule.add.text"));
-    getTemplatePresentation().setDescription(ApplicationBundle.message("arrangement.action.section.rule.add.description"));
+    getTemplatePresentation().setDescription(() -> ApplicationBundle.message("arrangement.action.section.rule.add.description"));
     getTemplatePresentation().setIcon(AllIcons.CodeStyle.AddNewSectionRule);
   }
 
index 8f16fa83e2a307701032387b265af2628070d9aa..d61b0fbdf461e5f3493221efefcc0761fe8cd2ce 100644 (file)
@@ -31,7 +31,7 @@ public class EditArrangementRuleAction extends AbstractArrangementRuleAction imp
 
   public EditArrangementRuleAction() {
     getTemplatePresentation().setText(() -> ApplicationBundle.message("arrangement.action.rule.edit.text"));
-    getTemplatePresentation().setDescription(ApplicationBundle.message("arrangement.action.rule.edit.description"));
+    getTemplatePresentation().setDescription(() -> ApplicationBundle.message("arrangement.action.rule.edit.description"));
     getTemplatePresentation().setIcon(IconUtil.getEditIcon());
     setEnabledInModalContext(true);
   }
index b891d8202797bd00f86ea6272c84ab5b748e7272..7756d8a55a8166f85a88fb89b27cfc64f188846a 100644 (file)
@@ -16,7 +16,7 @@ public class EditRuleAliasesDefinitionAction extends AnAction {
 
   public EditRuleAliasesDefinitionAction() {
     getTemplatePresentation().setText(() -> ApplicationBundle.message("arrangement.action.alias.rule.add.edit.text"));
-    getTemplatePresentation().setDescription(ApplicationBundle.message("arrangement.action.alias.rule.add.edit.description"));
+    getTemplatePresentation().setDescription(() -> ApplicationBundle.message("arrangement.action.alias.rule.add.edit.description"));
     getTemplatePresentation().setIcon(AllIcons.General.GearPlain);
   }
 
index 0cbcc28dbfa7729b0fa00708d3368a27ebb26659..c0f4233bf7cb4987e89ed3f4c1b4d50bad20b92d 100644 (file)
@@ -18,7 +18,7 @@ public class MoveArrangementGroupingRuleDownAction extends AnAction implements D
 
   public MoveArrangementGroupingRuleDownAction() {
     getTemplatePresentation().setText(() -> ApplicationBundle.message("arrangement.action.rule.move.down.text"));
-    getTemplatePresentation().setDescription(ApplicationBundle.message("arrangement.action.rule.move.down.description"));
+    getTemplatePresentation().setDescription(() -> ApplicationBundle.message("arrangement.action.rule.move.down.description"));
     getTemplatePresentation().setIcon(IconUtil.getMoveDownIcon());
   }
 
index d91f7a391f8dc1c0f6113bdfcd111e40a8efd7d6..407c8746e0a4201b6cf3efea18624e9593a323ee 100644 (file)
@@ -18,7 +18,7 @@ public class MoveArrangementGroupingRuleUpAction extends AnAction implements Dum
 
   public MoveArrangementGroupingRuleUpAction() {
     getTemplatePresentation().setText(() -> ApplicationBundle.message("arrangement.action.rule.move.up.text"));
-    getTemplatePresentation().setDescription(ApplicationBundle.message("arrangement.action.rule.move.up.description"));
+    getTemplatePresentation().setDescription(() -> ApplicationBundle.message("arrangement.action.rule.move.up.description"));
     getTemplatePresentation().setIcon(IconUtil.getMoveUpIcon());
   }
 
index 0f5af72e66fe14856c0a690847b54fb73aea4d8f..4273aabb77e160c00ebfa6e98d8377decc971c67 100644 (file)
@@ -30,7 +30,7 @@ public class MoveArrangementMatchingRuleDownAction extends AbstractMoveArrangeme
 
   public MoveArrangementMatchingRuleDownAction() {
     getTemplatePresentation().setText(() -> ApplicationBundle.message("arrangement.action.rule.move.down.text"));
-    getTemplatePresentation().setDescription(ApplicationBundle.message("arrangement.action.rule.move.down.description"));
+    getTemplatePresentation().setDescription(() -> ApplicationBundle.message("arrangement.action.rule.move.down.description"));
     getTemplatePresentation().setIcon(IconUtil.getMoveDownIcon());
     setEnabledInModalContext(true);
   }
index 676eb4a64334e0853492006a346e2418a9331166..7458696498013a6797718f21fa164ad4b8cbed37 100644 (file)
@@ -30,7 +30,7 @@ public class MoveArrangementMatchingRuleUpAction extends AbstractMoveArrangement
 
   public MoveArrangementMatchingRuleUpAction() {
     getTemplatePresentation().setText(() -> ApplicationBundle.message("arrangement.action.rule.move.up.text"));
-    getTemplatePresentation().setDescription(ApplicationBundle.message("arrangement.action.rule.move.up.description"));
+    getTemplatePresentation().setDescription(() -> ApplicationBundle.message("arrangement.action.rule.move.up.description"));
     getTemplatePresentation().setIcon(IconUtil.getMoveUpIcon());
     setEnabledInModalContext(true);
   }
index 72cf8ca71c107f827075a3b456cb1935f561472c..56672c01f686dea93bff3d33e6ba9bff8d18fdd0 100644 (file)
@@ -31,7 +31,7 @@ public class RemoveArrangementRuleAction extends AbstractArrangementRuleAction i
 
   public RemoveArrangementRuleAction() {
     getTemplatePresentation().setText(() -> ApplicationBundle.message("arrangement.action.rule.remove.text"));
-    getTemplatePresentation().setDescription(ApplicationBundle.message("arrangement.action.rule.remove.description"));
+    getTemplatePresentation().setDescription(() -> ApplicationBundle.message("arrangement.action.rule.remove.description"));
     getTemplatePresentation().setIcon(IconUtil.getRemoveIcon());
     setEnabledInModalContext(true);
   }
index 3fbf01a187d6ba522275983dab1f432678d5d75a..535e948108d06cf3ae60b7765957bcbd9a77a039 100644 (file)
@@ -38,12 +38,12 @@ public class DebugAction extends ExecutorAction {
     Presentation presentation = e.getPresentation();
     if (running) {
       presentation.setText(() -> ExecutionBundle.message("run.dashboard.restart.debugger.action.name"));
-      presentation.setDescription(ExecutionBundle.message("run.dashboard.restart.debugger.action.description"));
+      presentation.setDescription(() -> ExecutionBundle.message("run.dashboard.restart.debugger.action.description"));
       presentation.setIcon(AllIcons.Actions.RestartDebugger);
     }
     else {
       presentation.setText(() -> ExecutionBundle.message("run.dashboard.debug.action.name"));
-      presentation.setDescription(ExecutionBundle.message("run.dashboard.debug.action.description"));
+      presentation.setDescription(() -> ExecutionBundle.message("run.dashboard.debug.action.description"));
       presentation.setIcon(AllIcons.Actions.StartDebugger);
     }
   }
index ef04c92d61785cb200bfab9a3bb0dc5dadd86aed..087975250c74d963d708738df9462ff718281dee 100644 (file)
@@ -37,12 +37,12 @@ public class RunAction extends ExecutorAction {
     Presentation presentation = e.getPresentation();
     if (running) {
       presentation.setText(() -> ExecutionBundle.message("run.dashboard.rerun.action.name"));
-      presentation.setDescription(ExecutionBundle.message("run.dashboard.rerun.action.description"));
+      presentation.setDescription(() -> ExecutionBundle.message("run.dashboard.rerun.action.description"));
       presentation.setIcon(AllIcons.Actions.Restart);
     }
     else {
       presentation.setText(() -> ExecutionBundle.message("run.dashboard.run.action.name"));
-      presentation.setDescription(ExecutionBundle.message("run.dashboard.run.action.description"));
+      presentation.setDescription(() -> ExecutionBundle.message("run.dashboard.run.action.description"));
       presentation.setIcon(AllIcons.Actions.Execute);
     }
   }
index 3727c91237cd8acafd8140eb1f267c5d0b934a48..2b8773bfdf4747c2daf9de2ecf151ec8e3ceacf8 100644 (file)
@@ -49,7 +49,7 @@ public class GotoClassAction extends GotoActionBase implements DumbAware {
     //we need to change the template presentation to show the proper text for the action in Settings | Keymap
     Presentation presentation = getTemplatePresentation();
     presentation.setText(GotoClassPresentationUpdater.getActionTitle() + "...");
-    presentation.setDescription(IdeBundle.message("go.to.class.action.description",
+    presentation.setDescription(() -> IdeBundle.message("go.to.class.action.description",
                                                   StringUtil.join(GotoClassPresentationUpdater.getElementKinds(), "/")));
   }
 
index 74d5a4a9ae1dd141ca5323be08c7450d51a79f75..41b04c6e8bc6bccfaad12d0e4fb511210258702f 100644 (file)
@@ -26,11 +26,11 @@ public class FavoritesCompactEmptyMiddlePackagesAction extends FavoritesToolbarB
     // see com.intellij.ide.projectView.impl.ProjectViewImpl.HideEmptyMiddlePackagesAction.update
     if (getViewSettings().isFlattenPackages()) {
       presentation.setText(() -> IdeBundle.message("action.hide.empty.middle.packages"));
-      presentation.setDescription(IdeBundle.message("action.show.hide.empty.middle.packages"));
+      presentation.setDescription(() -> IdeBundle.message("action.show.hide.empty.middle.packages"));
     }
     else {
       presentation.setText(() -> IdeBundle.message("action.compact.empty.middle.packages"));
-      presentation.setDescription(IdeBundle.message("action.show.compact.empty.middle.packages"));
+      presentation.setDescription(() -> IdeBundle.message("action.show.compact.empty.middle.packages"));
     }
 
   }
index d750d78f6aa091a2ccc759f3f39a5f9c971b8b26..ee209efbd7b42010757938265900f695ca9d4999 100644 (file)
@@ -26,7 +26,7 @@ public class MarkSourceRootAction extends MarkRootActionBase {
     LOG.assertTrue(editHandler != null);
     presentation.setIcon(editHandler.getRootIcon());
     presentation.setText(editHandler.getFullRootTypeName());
-    presentation.setDescription(ProjectBundle.message("module.toggle.sources.action.description",
+    presentation.setDescription(() -> ProjectBundle.message("module.toggle.sources.action.description",
                                                       editHandler.getFullRootTypeName().toLowerCase(Locale.getDefault())));
   }
 
index f778fe4a38cecf2b4ad7959b8f98f6ff99c500ad..27125098b88e78e0152d0ff4846c1cbb90a8b9f2 100644 (file)
@@ -38,7 +38,7 @@ public class ToggleExcludedStateAction extends ContentEntryEditingAction {
     myEntryTreeEditor = entryEditor;
     final Presentation templatePresentation = getTemplatePresentation();
     templatePresentation.setText(() -> ProjectBundle.message("module.toggle.excluded.action"));
-    templatePresentation.setDescription(ProjectBundle.message("module.toggle.excluded.action.description"));
+    templatePresentation.setDescription(() -> ProjectBundle.message("module.toggle.excluded.action.description"));
     templatePresentation.setIcon(AllIcons.Modules.ExcludeRoot);
   }
 
index b12b3035420590deb7ae4f9d273ce1968e7e3c4d..4c49ed8fdb68d53ae25aec5fcd88086afdc62280 100644 (file)
@@ -43,7 +43,7 @@ public class ToggleSourcesStateAction<P extends JpsElement> extends ContentEntry
     myEditHandler = editHandler;
     final Presentation templatePresentation = getTemplatePresentation();
     templatePresentation.setText(editHandler.getMarkRootButtonText());
-    templatePresentation.setDescription(ProjectBundle.message("module.toggle.sources.action.description",
+    templatePresentation.setDescription(() -> ProjectBundle.message("module.toggle.sources.action.description",
                                                               editHandler.getFullRootTypeName().toLowerCase(Locale.getDefault())));
     templatePresentation.setIcon(editHandler.getRootIcon());
   }
index be7bcd3b00b79554cb4f7c6e94f11cefc9457db8..bfd97e5f7a533d068449f8f18eb2ed8171ff31d4 100644 (file)
@@ -44,10 +44,10 @@ public class GotoTestOrCodeAction extends BaseCodeInsightAction {
     presentation.setEnabledAndVisible(true);
     if (TestFinderHelper.isTest(element)) {
       presentation.setText(() -> ActionsBundle.message("action.GotoTestSubject.text"));
-      presentation.setDescription(ActionsBundle.message("action.GotoTestSubject.description"));
+      presentation.setDescription(() -> ActionsBundle.message("action.GotoTestSubject.description"));
     } else {
       presentation.setText(() -> ActionsBundle.message("action.GotoTest.text"));
-      presentation.setDescription(ActionsBundle.message("action.GotoTest.description"));
+      presentation.setDescription(() -> ActionsBundle.message("action.GotoTest.description"));
     }
   }
 }
index 1884ac2a0e338488854a141618581139d24fe99d..cc93330334b737884ac663fbab59d13598be25a0 100644 (file)
@@ -86,7 +86,7 @@ public class ActivateToolWindowAction extends DumbAwareAction {
   private void updatePresentation(@NotNull Presentation presentation, @NotNull ToolWindow toolWindow) {
     String title = toolWindow.getStripeTitle();
     presentation.setText(title);
-    presentation.setDescription(IdeBundle.message("action.activate.tool.window", title));
+    presentation.setDescription(() -> IdeBundle.message("action.activate.tool.window", title));
     Icon icon = toolWindow.getIcon();
     if (EventLog.LOG_TOOL_WINDOW_ID.equals(myToolWindowId)) {
       icon = AllIcons.Ide.Notification.InfoEvents;
index 2a2c6584deb4d15589880ae7da223a246a2f6977..c2faba645f0bc01b23a9fca04a6f6096ab82fca7 100644 (file)
@@ -29,7 +29,7 @@ public class SendFeedbackAction extends AnAction implements DumbAware {
     boolean isSupportedOS = SystemInfo.isMac || SystemInfo.isLinux || SystemInfo.isWindows;
     if (info != null && info.getFeedbackUrl() != null && isSupportedOS) {
       String feedbackSite = getFeedbackHost(info.getFeedbackUrl(), info.getCompanyName());
-      e.getPresentation().setDescription(ActionsBundle.message("action.SendFeedback.detailed.description", feedbackSite));
+      e.getPresentation().setDescription(() -> ActionsBundle.message("action.SendFeedback.detailed.description", feedbackSite));
       e.getPresentation().setEnabledAndVisible(true);
     }
     else {
index 701be9f943fe8d7f7508996f4f1c865672a6c06a..db4391315a084d638de381726461783338691186 100644 (file)
@@ -148,10 +148,10 @@ abstract class TabNavigationActionBase extends AnAction implements DumbAware {
       super(navigationType);
       if (navigationType == NavigationType.LAST) {
         getTemplatePresentation().setText(() -> ActionsBundle.message("action.GoToLastTab.text"));
-        getTemplatePresentation().setDescription(ActionsBundle.message("action.GoToLastTab.description"));
+        getTemplatePresentation().setDescription(() -> ActionsBundle.message("action.GoToLastTab.description"));
       } else {
         getTemplatePresentation().setText(() -> ActionsBundle.message("action.GoToTab.text", navigationType.ordinal() + 1));
-        getTemplatePresentation().setDescription(ActionsBundle.message("action.GoToTab.description", navigationType.ordinal() + 1));
+        getTemplatePresentation().setDescription(() -> ActionsBundle.message("action.GoToTab.description", navigationType.ordinal() + 1));
       }
     }
 
index 37bc63d86b127241d46b07c5c0bcaa574c43abec..39dafd409008ae54d6026cfef52aff9f44da4ff8 100644 (file)
@@ -17,7 +17,7 @@ public class TemplateProjectPropertiesAction extends AnAction implements DumbAwa
   public TemplateProjectPropertiesAction() {
     String projectConceptName = StringUtil.capitalize(IdeUICustomization.getInstance().getProjectConceptName());
     getTemplatePresentation().setText(() -> ActionsBundle.message("action.TemplateProjectProperties.text.template", CommonBundle.settingsTitle(), projectConceptName));
-    getTemplatePresentation().setDescription(ActionsBundle.message("action.TemplateProjectProperties.description.template", projectConceptName));
+    getTemplatePresentation().setDescription(() -> ActionsBundle.message("action.TemplateProjectProperties.description.template", projectConceptName));
   }
 
   @Override
index 6b7b13edae009ed19b3662fd899201828b39bc82..e1157f466d7a94139cbc366aca71bc5270ddf72b 100644 (file)
@@ -24,7 +24,7 @@ public class WhatsNewAction extends AnAction implements DumbAware {
       e.getPresentation()
         .setText(() -> IdeBundle.message("whatsnew.action.custom.text", ApplicationNamesInfo.getInstance().getFullProductName()));
       e.getPresentation().setDescription(
-        IdeBundle.message("whatsnew.action.custom.description", ApplicationNamesInfo.getInstance().getFullProductName()));
+        () -> IdeBundle.message("whatsnew.action.custom.description", ApplicationNamesInfo.getInstance().getFullProductName()));
     }
   }
 }
index 6d8a8fe1e7def6919b41320af22cf727f8567708..e5d6f52d97fb422ce40c219456a4292e7067fbe7 100644 (file)
@@ -62,7 +62,8 @@ public class RemoveBomAction extends AnAction implements DumbAware {
 
     e.getPresentation().setEnabled(enabled);
     e.getPresentation().setVisible(enabled || ActionPlaces.isMainMenuOrActionSearch(e.getPlace()));
-    e.getPresentation().setDescription(IdeBundle.message("remove.byte.order.mark.from", fromWhere));
+    String finalFromWhere = fromWhere;
+    e.getPresentation().setDescription(() -> IdeBundle.message("remove.byte.order.mark.from", finalFromWhere));
   }
 
   @Override
index 97ede819c1ee4e29b883b2fede6fea5a51a25ba4..a0180a8426e3eb43767132fe5a95e64bfbe03b2f 100644 (file)
@@ -20,7 +20,7 @@ public class CheckForUpdateAction extends AnAction implements DumbAware {
     }
 
     if (!UpdateSettings.getInstance().isPlatformUpdateEnabled()) {
-      e.getPresentation().setDescription(ActionsBundle.message("action.CheckForUpdate.description.plugins"));
+      e.getPresentation().setDescription(() -> ActionsBundle.message("action.CheckForUpdate.description.plugins"));
     }
   }
 
index 39a6b04cdc63484eb731c72458a1223e50fa533c..85cefecedc590b93a917c439883297dfd203cd51 100644 (file)
@@ -63,11 +63,11 @@ public class ToolbarPanel extends JPanel implements OccurenceNavigator, Disposab
     actionGroup.addSeparator();
 
     AnAction action = CommonActionsManager.getInstance().createExpandAllAction(myTreeExpander, parent);
-    action.getTemplatePresentation().setDescription(ExecutionBundle.message("junit.runing.info.expand.test.action.name"));
+    action.getTemplatePresentation().setDescription(() -> ExecutionBundle.message("junit.runing.info.expand.test.action.name"));
     actionGroup.add(action);
 
     action = CommonActionsManager.getInstance().createCollapseAllAction(myTreeExpander, parent);
-    action.getTemplatePresentation().setDescription(ExecutionBundle.message("junit.runing.info.collapse.test.action.name"));
+    action.getTemplatePresentation().setDescription(() -> ExecutionBundle.message("junit.runing.info.collapse.test.action.name"));
     actionGroup.add(action);
 
     actionGroup.addSeparator();
index 0c33ce5b921cd6f889d780e183092aa377c77198..bfc1eb05a01f31391831c3263975681942689114 100644 (file)
@@ -840,7 +840,7 @@ public class UsageViewImpl implements UsageViewEx {
     group.setPopup(true);
     group.getTemplatePresentation().setIcon(AllIcons.Actions.GroupBy);
     group.getTemplatePresentation().setText(() -> UsageViewBundle.message("action.group.by.title"));
-    group.getTemplatePresentation().setDescription(UsageViewBundle.message("action.group.by.title"));
+    group.getTemplatePresentation().setDescription(() -> UsageViewBundle.message("action.group.by.title"));
     final AnAction[] groupingActions = createGroupingActions();
     if (groupingActions.length > 0) {
       group.add(new Separator(UsageViewBundle.message("action.group.by.title")));
index 08c7e3249e1f4d24c622dc15d5bda7e3cd6c5feb..72187f5d97ba72c95aa131164f1773cb0071fd3b 100644 (file)
@@ -34,7 +34,7 @@ public class RestoreShelvedChange extends DumbAwareAction {
     Collection<ShelvedChangeList> deletedLists = notNullize(e.getData(ShelvedChangesViewManager.SHELVED_DELETED_CHANGELIST_KEY));
     presentation.setText(() -> VcsBundle.message("vcs.shelf.action.restore.text"));
     presentation
-      .setDescription(VcsBundle.message("vcs.shelf.action.restore.description", StringUtil.pluralize("changelist", deletedLists.size())));
+      .setDescription(() -> VcsBundle.message("vcs.shelf.action.restore.description", StringUtil.pluralize("changelist", deletedLists.size())));
     presentation.setEnabled(!isEmpty(deletedLists));
   }
 
index 87325ba5d9a3ea529a24d0d20ca43a3e438cdf1b..cc51ac25442a262de414a910e34f66dc9c124273 100644 (file)
@@ -40,7 +40,7 @@ public class CompareRevisionsAction implements AnActionExtensionProvider {
   @Override
   public void update(@NotNull AnActionEvent e) {
     e.getPresentation().setText(() -> VcsBundle.message("action.name.compare"));
-    e.getPresentation().setDescription(VcsBundle.message("action.description.compare"));
+    e.getPresentation().setDescription(() -> VcsBundle.message("action.description.compare"));
 
     VcsFileRevision[] revisions = e.getData(VcsDataKeys.VCS_FILE_REVISIONS);
     VcsHistorySession historySession = e.getData(VcsDataKeys.HISTORY_SESSION);
index c0c117e6bb57a68d71da7ed573216a0f175b8605..455f051f5e0ab197b7d5c9bd6e7dec2bfd3f337b 100644 (file)
@@ -64,7 +64,7 @@ public class CreatePatchFromDirectoryAction implements AnActionExtensionProvider
   public void update(@NotNull AnActionEvent e) {
     e.getPresentation().setVisible(true);
     e.getPresentation().setText(() -> VcsBundle.message("action.name.create.patch.for.selected.revisions"));
-    e.getPresentation().setDescription(VcsBundle.message("action.description.create.patch.for.selected.revisions"));
+    e.getPresentation().setDescription(() -> VcsBundle.message("action.description.create.patch.for.selected.revisions"));
 
     VcsFileRevision[] revisions = e.getData(VcsDataKeys.VCS_FILE_REVISIONS);
     FilePath filePath = e.getData(VcsDataKeys.FILE_PATH);
index c49f3b57577238516fc1e7eb7fb55ebd87f56f5c..d5bd696d58b5830fa7b76a80c8e770f620a6bcf1 100644 (file)
@@ -212,10 +212,10 @@ public class AntExplorer extends SimpleToolWindowPanel implements DataProvider,
     group.add(new RunAction());
     group.add(new ShowAllTargetsAction());
     AnAction action = CommonActionsManager.getInstance().createExpandAllAction(myTreeExpander, this);
-    action.getTemplatePresentation().setDescription(AntBundle.message("ant.explorer.expand.all.nodes.action.description"));
+    action.getTemplatePresentation().setDescription(() -> AntBundle.message("ant.explorer.expand.all.nodes.action.description"));
     group.add(action);
     action = CommonActionsManager.getInstance().createCollapseAllAction(myTreeExpander, this);
-    action.getTemplatePresentation().setDescription(AntBundle.message("ant.explorer.collapse.all.nodes.action.description"));
+    action.getTemplatePresentation().setDescription(() -> AntBundle.message("ant.explorer.collapse.all.nodes.action.description"));
     group.add(action);
     group.add(myAntBuildFilePropertiesAction);
 
index f9e0ed36a2152b234b2ba88437f550a6516fa614..e2222af9ea0ee505d83645b16c8b838d6f98cb43 100644 (file)
@@ -37,7 +37,7 @@ public class AddGradleDslDependencyAction extends CodeInsightAction {
   static final ThreadLocal<List<MavenId>> TEST_THREAD_LOCAL = new ThreadLocal<>();
 
   public AddGradleDslDependencyAction() {
-    getTemplatePresentation().setDescription(GradleBundle.message("gradle.codeInsight.action.add_maven_dependency.description"));
+    getTemplatePresentation().setDescription(() -> GradleBundle.message("gradle.codeInsight.action.add_maven_dependency.description"));
     getTemplatePresentation().setText(() -> GradleBundle.message("gradle.codeInsight.action.add_maven_dependency.text"));
     getTemplatePresentation().setIcon(AllIcons.Nodes.PpLib);
   }
index 8edabb61d9bfcc3a92e2c37194c75d15a2ad0d9d..a00531f7117436c4704a697788a6f41958696b1d 100644 (file)
@@ -31,7 +31,7 @@ public class AddGradleDslPluginAction extends CodeInsightAction {
   private final List<Pair<String, String>> myPlugins;
 
   public AddGradleDslPluginAction() {
-    getTemplatePresentation().setDescription(GradleBundle.message("gradle.codeInsight.action.apply_plugin.description"));
+    getTemplatePresentation().setDescription(() -> GradleBundle.message("gradle.codeInsight.action.apply_plugin.description"));
     getTemplatePresentation().setText(() -> GradleBundle.message("gradle.codeInsight.action.apply_plugin.text"));
     getTemplatePresentation().setIcon(GradleIcons.Gradle);
 
index 2caa6d509f78504b1e5a81d18bae868103add523..aea2784408a57818c53e9e953d936de37a67c6c7 100644 (file)
@@ -27,7 +27,7 @@ import java.util.List;
 public class GradleRefreshProjectDependenciesAction extends RefreshExternalProjectAction {
   public GradleRefreshProjectDependenciesAction() {
     getTemplatePresentation().setText(() -> GradleBundle.message("gradle.action.refresh.dependencies.text"));
-    getTemplatePresentation().setDescription(GradleBundle.message("gradle.action.refresh.dependencies.description"));
+    getTemplatePresentation().setDescription(() -> GradleBundle.message("gradle.action.refresh.dependencies.description"));
   }
 
   @Override
index 12cd2d3eb6b191bb5a577f75fa93241bf73b6868..77f0681774be7f93c8188153f7cc3b47dd445c47 100644 (file)
@@ -40,7 +40,7 @@ public abstract class AbstractIntegrateChangesAction<T extends SelectedCommitted
     }
 
     presentation.setText(() -> SvnBundle.message("action.Subversion.integrate.changes.actionname"));
-    presentation.setDescription(SvnBundle.message("action.Subversion.integrate.changes.description"));
+    presentation.setDescription(() -> SvnBundle.message("action.Subversion.integrate.changes.description"));
 
     final T checker = createChecker();
     checker.execute(e);
index 7bd35b46660e74cfd02bb835ae6b379ad883a426..d4bf68b012025676cd3e4b65cfdd0aef97aa38ef 100644 (file)
@@ -39,7 +39,7 @@ public class RemoveFromIgnoreListAction extends BasicAction {
 
     presentation.setEnabledAndVisible(true);
     presentation.setText(myActionName);
-    presentation.setDescription(SvnBundle.message("action.Subversion.UndoIgnore.description"));
+    presentation.setDescription(() -> SvnBundle.message("action.Subversion.UndoIgnore.description"));
   }
 
   @Override
index bb1f592ca82c0347ad24b15e36110d0174bf5e92..7dd58bf4532cbd4e991bcebb9728da4eb27df9e6 100644 (file)
@@ -335,7 +335,7 @@ public class RepositoryBrowserDialog extends DialogWrapper {
     @Override
     public void update(@NotNull AnActionEvent e) {
       e.getPresentation().setText(() -> SvnBundle.message("repository.browser.history.action"));
-      e.getPresentation().setDescription(SvnBundle.message("repository.browser.history.action"));
+      e.getPresentation().setDescription(() -> SvnBundle.message("repository.browser.history.action"));
       final RepositoryTreeNode node = getRepositoryBrowser().getSelectedNode();
       e.getPresentation().setEnabled(node != null && node.getURL() != null && !myProject.isDefault());
     }
@@ -367,7 +367,7 @@ public class RepositoryBrowserDialog extends DialogWrapper {
     @Override
     public void update(@NotNull AnActionEvent e) {
       e.getPresentation().setText(() -> SvnBundle.message("action.name.refresh"));
-      e.getPresentation().setDescription(SvnBundle.message("repository.browser.refresh.action"));
+      e.getPresentation().setDescription(() -> SvnBundle.message("repository.browser.refresh.action"));
       e.getPresentation().setIcon(AllIcons.Actions.Refresh);
       e.getPresentation().setEnabled(myBrowserComponent.getSelectedNode() != null);
     }
@@ -393,7 +393,7 @@ public class RepositoryBrowserDialog extends DialogWrapper {
     @Override
     public void update(@NotNull AnActionEvent e) {
       if (e.getPlace().equals(PLACE_TOOLBAR)) {
-        e.getPresentation().setDescription(SvnBundle.message("repository.browser.add.location.action.description"));
+        e.getPresentation().setDescription(() -> SvnBundle.message("repository.browser.add.location.action.description"));
         e.getPresentation().setText(() -> SvnBundle.message("repository.browser.add.location.action.text"));
         e.getPresentation().setIcon(IconUtil.getAddIcon());
       }
@@ -433,7 +433,7 @@ public class RepositoryBrowserDialog extends DialogWrapper {
     public void update(@NotNull AnActionEvent e) {
       RepositoryTreeNode node = myBrowserComponent.getSelectedNode();
       if (e.getPlace().equals(PLACE_TOOLBAR)) {
-        e.getPresentation().setDescription(SvnBundle.message("repository.browser.edit.location.menu.item"));
+        e.getPresentation().setDescription(() -> SvnBundle.message("repository.browser.edit.location.menu.item"));
         e.getPresentation().setText(() -> SvnBundle.message("repository.browser.edit.location.menu.item"));
         e.getPresentation().setIcon(AllIcons.Actions.EditSource);
       }
@@ -959,7 +959,7 @@ public class RepositoryBrowserDialog extends DialogWrapper {
 
     @Override
     public void update(@NotNull final AnActionEvent e) {
-      e.getPresentation().setDescription(SvnBundle.message("repository.browser.details.action"));
+      e.getPresentation().setDescription(() -> SvnBundle.message("repository.browser.details.action"));
       e.getPresentation().setText(() -> SvnBundle.message("repository.browser.details.action"));
       e.getPresentation().setIcon(AllIcons.Actions.Annotate);
       super.update(e);
index 8b13e2440a0db098c86a315b0431f3fc813ab9ab..f61a793da3bd9979b1c04d26fefd1b3bcec0f2e6 100644 (file)
@@ -26,7 +26,7 @@ public class ChooseLocaleAction extends ComboBoxAction {
 
   public ChooseLocaleAction() {
     getTemplatePresentation().setText("");
-    getTemplatePresentation().setDescription(UIDesignerBundle.message("choose.locale.description"));
+    getTemplatePresentation().setDescription(() -> UIDesignerBundle.message("choose.locale.description"));
     getTemplatePresentation().setIcon(AllIcons.Nodes.PpWeb);
   }