mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tests: hide auto test delay for java configurations which are compiler based
This commit is contained in:
@@ -175,6 +175,11 @@ public abstract class JavaTestFrameworkRunnableState<T extends
|
||||
|
||||
final DefaultExecutionResult result = new DefaultExecutionResult(consoleView, handler);
|
||||
result.setRestartActions(rerunFailedTestsAction, new ToggleAutoTestAction() {
|
||||
@Override
|
||||
public boolean isDelayApplicable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AbstractAutoTestManager getAutoTestManager(Project project) {
|
||||
return JavaAutoRunManager.getInstance(project);
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ public class AdjustAutotestDelayActionGroup extends ActionGroup {
|
||||
if (descriptor != null) {
|
||||
for (AnAction action : descriptor.getRestartActions()) {
|
||||
if (action instanceof ToggleAutoTestAction) {
|
||||
visible = true;
|
||||
visible = ((ToggleAutoTestAction)action).isDelayApplicable();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -45,6 +45,10 @@ public class ToggleAutoTestAction extends ToggleAction {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isDelayApplicable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public AbstractAutoTestManager getAutoTestManager(Project project) {
|
||||
return AutoTestManager.getInstance(project);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user