rename and cleanup

This commit is contained in:
Sergey Ignatov
2018-02-17 00:52:54 +03:00
parent ed049fb85b
commit e60c28c073
2 changed files with 9 additions and 9 deletions
@@ -45,7 +45,7 @@ import java.util.stream.Collectors;
import static com.intellij.openapi.actionSystem.CommonDataKeys.EDITOR;
import static com.intellij.openapi.actionSystem.CommonDataKeys.PSI_FILE;
public class FindTestsInTestDiscoveryServerAction extends AnAction {
public class ShowDiscoveredTestsAction extends AnAction {
@Override
public void update(AnActionEvent e) {
Editor editor = e.getData(EDITOR);
@@ -103,9 +103,9 @@ public class FindTestsInTestDiscoveryServerAction extends AnAction {
.findFirst()
.ifPresent(configuration -> {
ExecutionUtil.runConfiguration(configuration.getConfigurationSettings(), executor);
JBPopup pinPopup = ref.get();
if (pinPopup != null) {
pinPopup.cancel();
JBPopup popup = ref.get();
if (popup != null) {
popup.cancel();
}
});
});
@@ -115,9 +115,9 @@ public class FindTestsInTestDiscoveryServerAction extends AnAction {
__ -> {
PsiElement[] elements = model.getItems().toArray(PsiElement.EMPTY_ARRAY);
FindUtil.showInUsageView(null, elements, initTitle, project);
JBPopup pinPopup = ref.get();
if (pinPopup != null) {
pinPopup.cancel();
JBPopup popup = ref.get();
if (popup != null) {
popup.cancel();
}
});
@@ -176,7 +176,7 @@ public class FindTestsInTestDiscoveryServerAction extends AnAction {
});
});
}
private static List<TestDiscoveryConfigurationProducer> getProducers(Project project) {
return RunConfigurationProducer.getProducers(project)
.stream()
+1 -1
View File
@@ -399,7 +399,7 @@
<add-to-group group-id="Internal" anchor="last"/>
</action>
<action class="com.intellij.execution.testDiscovery.FindTestsInTestDiscoveryServerAction" internal="true" id="FindTestsInTestDiscoveryServer" text="Test Discovery">
<action class="com.intellij.execution.testDiscovery.ShowDiscoveredTestsAction" internal="true" id="ShowDiscoveredTests" text="Show Discovered Tests">
<add-to-group group-id="Internal" anchor="last"/>
</action>