добавление теста через папку.

This commit is contained in:
2023-11-20 20:17:59 +03:00
parent 0dd1bbc8f6
commit 0cfa94eba8
5 changed files with 82 additions and 11 deletions

View File

@@ -202,7 +202,7 @@ public class db_project_info extends DBObject {
db_project_info stored_info = db.LoadOnlyProjectInfo();
if (stored_info == null) {
name = Home.getName();
description = "исходная";
description = "";
creationDate = Utils.getDateNumber(); //----------------------------------------------------------------------------->>>
db.Insert(this);
} else
@@ -222,7 +222,7 @@ public class db_project_info extends DBObject {
db_project_info stored_info = db.LoadOnlyProjectInfo();
if (stored_info == null) {
name = Home.getName();
description = "исходная";
description = "";
creationDate = Utils.getDateNumber(); //----------------------------------------------------------------------------->>>
db.Insert(this);
} else
@@ -239,7 +239,7 @@ public class db_project_info extends DBObject {
db.Disconnect();
dropLastModification();
}
//-
//-исходная
public void CreateVisualiserData() throws Exception {
CheckVisualiserDirectories();
db = new ProjectDatabase(this);
@@ -1531,7 +1531,9 @@ public class db_project_info extends DBObject {
}
public String getLocalName() {
//требует отображения рута. без него работать не будет.
return Home.getAbsolutePath().substring(Current.getRoot().Home.getParentFile().getAbsolutePath().length() + 1);
if (Current.HasRoot())
return Home.getAbsolutePath().substring(Current.getRoot().Home.getParentFile().getAbsolutePath().length() + 1);
else return Home.getName();
}
public void SelectAllFiles(boolean b) {
for (DBProjectFile file : db.files.Data.values())
@@ -1549,7 +1551,7 @@ public class db_project_info extends DBObject {
getSubdirectoriesR(Home);
return !subdirectories.isEmpty();
}
public boolean checkSubdirectories(TextLog Log){
public boolean checkSubdirectories(TextLog Log) {
if (hasSubdirectories()) {
Log.Writeln_("Проект содержит вложенные папки!");
return false;