import tests: multiple selection according to the stored configuration (IDEA-155464)
authorAnna.Kozlova <anna.kozlova@jetbrains.com>
Mon, 2 May 2016 09:02:11 +0000 (11:02 +0200)
committerAnna.Kozlova <anna.kozlova@jetbrains.com>
Mon, 2 May 2016 13:21:04 +0000 (15:21 +0200)
java/execution/impl/src/com/intellij/execution/testframework/JavaAwareTestConsoleProperties.java
platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/ImportedTestConsoleProperties.java
platform/testRunner/src/com/intellij/execution/testframework/TestConsoleProperties.java
plugins/gradle/src/org/jetbrains/plugins/gradle/execution/test/runner/GradleConsoleProperties.java

index d49624954ff0456b163d7f0c2bd4a246c37f15e7..9e779808534d395e32ddac5804a1380907f3f06d 100644 (file)
@@ -60,7 +60,7 @@ public abstract class JavaAwareTestConsoleProperties<T extends ModuleBasedConfig
   }
 
   @Override
-  protected int getSelectionMode() {
+  public int getSelectionMode() {
     return TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION;
   }
 
index faba4f0d2e5ae8a318798cc5cc4788fb5db33984..b5e986121ef820b9592f9196c755be3c3c54e8e6 100644 (file)
@@ -120,4 +120,9 @@ public class ImportedTestConsoleProperties extends SMTRunnerConsoleProperties im
       myProperties.appendAdditionalActions(actionGroup, parent, this);
     }
   }
+
+  @Override
+  public int getSelectionMode() {
+    return myProperties != null ? myProperties.getSelectionMode() : super.getSelectionMode();
+  }
 }
index 00f5db4fc238ec3e2896c2dedd040801c3c1d700..7015abc261173cd03c8d81a06eb35586021200b1 100644 (file)
@@ -223,7 +223,7 @@ public abstract class TestConsoleProperties extends StoringPropertyContainer imp
   }
 
   @JdkConstants.TreeSelectionMode
-  protected int getSelectionMode() {
+  public int getSelectionMode() {
     return TreeSelectionModel.SINGLE_TREE_SELECTION;
   }
   
index 625311ffefddca2daac1a26844bf957882146fc0..5a476e40f4feec22cdb56bcf8527fd8922dae9d2 100644 (file)
@@ -44,7 +44,7 @@ public class GradleConsoleProperties extends SMTRunnerConsoleProperties {
   }
 
   @Override
-  protected int getSelectionMode() {
+  public int getSelectionMode() {
     return TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION;
   }
 }