mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-88820 Wrong button behavior in JUnit execution
This commit is contained in:
+2
-3
@@ -69,7 +69,7 @@ public class AbstractRerunFailedTestsAction extends AnAction {
|
||||
}
|
||||
|
||||
public void update(AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(isActive(e));
|
||||
e.getPresentation().setEnabled(isActive(e) && !getModel().isRunning());
|
||||
}
|
||||
|
||||
private boolean isActive(AnActionEvent e) {
|
||||
@@ -92,7 +92,6 @@ public class AbstractRerunFailedTestsAction extends AnAction {
|
||||
}
|
||||
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
final DataContext dataContext = e.getDataContext();
|
||||
boolean isDebug = myConsoleProperties.isDebug();
|
||||
final MyRunProfile profile = getRunProfile();
|
||||
try {
|
||||
@@ -104,7 +103,7 @@ public class AbstractRerunFailedTestsAction extends AnAction {
|
||||
profile.getProject(),
|
||||
myEnvironment.getRunnerSettings(),
|
||||
myEnvironment.getConfigurationSettings(),
|
||||
null,
|
||||
myEnvironment.getContentToReuse(),
|
||||
myEnvironment.getRunnerAndConfigurationSettings()));
|
||||
}
|
||||
catch (ExecutionException e1) {
|
||||
|
||||
Reference in New Issue
Block a user