diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/AbstractImportTestsAction.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/AbstractImportTestsAction.java index 4f08db226a5a..1348e60a3ef0 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/AbstractImportTestsAction.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/AbstractImportTestsAction.java @@ -66,7 +66,7 @@ public abstract class AbstractImportTestsAction extends AnAction { } @Nullable - public abstract VirtualFile getFile(@NotNull Project project); + protected abstract VirtualFile getFile(@NotNull Project project); @Override public void actionPerformed(@NotNull AnActionEvent e) { diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsFromFileAction.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsFromFileAction.java index 2cf78c4247a8..0683c5f8a57c 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsFromFileAction.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsFromFileAction.java @@ -20,7 +20,7 @@ public class ImportTestsFromFileAction extends AbstractImportTestsAction { @Nullable @Override - public VirtualFile getFile(@NotNull Project project) { + protected VirtualFile getFile(@NotNull Project project) { final FileChooserDescriptor xmlDescriptor = FileChooserDescriptorFactory.createSingleFileDescriptor(StdFileTypes.XML); xmlDescriptor.setTitle("Choose a File with Tests Result"); return FileChooser.chooseFile(xmlDescriptor, project, null); diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsFromHistoryAction.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsFromHistoryAction.java index e569a1315b9b..58378c0ee985 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsFromHistoryAction.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsFromHistoryAction.java @@ -50,7 +50,7 @@ public class ImportTestsFromHistoryAction extends AbstractImportTestsAction { @Nullable @Override - public VirtualFile getFile(@NotNull Project project) { + protected VirtualFile getFile(@NotNull Project project) { return LocalFileSystem.getInstance().refreshAndFindFileByPath(TestStateStorage.getTestHistoryRoot(project).getPath() + "/" + myFileName); } }