добавление теста через папку.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user