v++
This commit is contained in:
@@ -4,10 +4,11 @@ import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
public class TestsMenuBar extends DataMenuBar {
|
||||
public TestsMenuBar() {
|
||||
super("тесты",
|
||||
PassCode_2021.DownloadTest,
|
||||
//PassCode_2021.PublishTest,
|
||||
PassCode_2021.CreateTestFromCurrentProject,
|
||||
PassCode_2021.CreateTestFromDirectory,
|
||||
PassCode_2021.EditTest,
|
||||
PassCode_2021.DownloadTest,
|
||||
PassCode_2021.DeleteTest);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1134,5 +1134,17 @@ public class Utils {
|
||||
if (project_data.exists())
|
||||
FileUtils.forceDelete(project_data);
|
||||
}
|
||||
//--
|
||||
public static boolean isVersion(File directory) throws Exception {
|
||||
File[] files = directory.listFiles(File::isDirectory);
|
||||
if (files!=null){
|
||||
for (File file: files){
|
||||
File data = new File(file, Constants.data);
|
||||
if (data.exists())
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user