From 75ae2fb6eb1e2aea86560128f62e02a13c3cbf22 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 11 Jun 2019 11:50:41 +0200 Subject: [PATCH] test history: adjust method visibility (cleanup) GitOrigin-RevId: dda0f6d5a83bb434dcc2eaeb6a2723c2508b58f2 --- .../sm/runner/history/actions/AbstractImportTestsAction.java | 2 +- .../sm/runner/history/actions/ImportTestsFromFileAction.java | 2 +- .../sm/runner/history/actions/ImportTestsFromHistoryAction.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); } }