Changed popup title of InheritorChooser in accordance with doc in UX-487

This commit is contained in:
Sergei Vorobyov
2019-02-15 17:20:49 +03:00
committed by Sergei Vorobyov
parent 61932662fe
commit f4652fe1de
2 changed files with 4 additions and 1 deletions
@@ -15,6 +15,7 @@
*/
package com.intellij.execution.junit;
import com.intellij.execution.ExecutionBundle;
import com.intellij.execution.Location;
import com.intellij.execution.actions.ConfigurationContext;
import com.intellij.execution.junit2.PsiMemberParameterizedLocation;
@@ -125,10 +126,11 @@ public class InheritorChooser {
//suggest to run all inherited tests
classes.add(0, null);
String locationName = psiMethod != null ? psiMethod.getName() : containingClass.getName();
JBPopupFactory.getInstance()
.createPopupChooserBuilder(classes)
.setRenderer(renderer)
.setTitle("Choose executable classes to run " + (psiMethod != null ? psiMethod.getName() : containingClass.getName()))
.setTitle(ExecutionBundle.message("test.cases.choosing.popup.title", locationName))
.setMovable(false)
.setResizable(false)
.setRequestFocus(true)
@@ -429,3 +429,4 @@ tests.tasks.choosing.popup.title.common=Run Tasks
tests.tasks.choosing.popup.title=Run Tasks for {0}
tests.tasks.choosing.popup.hint=Select several tasks to run them at once
tests.tasks.choosing.warning.text=No test tasks available
test.cases.choosing.popup.title=Run Implementations of {0}