mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test history: adjust method visibility (cleanup)
GitOrigin-RevId: dda0f6d5a83bb434dcc2eaeb6a2723c2508b58f2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0186a7142b
commit
75ae2fb6eb
+1
-1
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user