no message

This commit is contained in:
2024-10-08 22:33:49 +03:00
parent 90546fc62e
commit e0974fe4a8
246 changed files with 1170 additions and 849 deletions

View File

@@ -2,9 +2,11 @@ package ProjectData.Project;
import Common.CommonConstants;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils;
import Common.Visual.CommonUI;
import Common_old.Constants;
import Common_old.Current;
import Common.Database.Objects.DBObject;
import GlobalData.GlobalDatabase;
import _VisualDVM.Global;
import Common_old.UI.UI;
import Common.Utils.Index;
@@ -170,7 +172,7 @@ public class db_project_info extends DBObject {
parent = parent_in;
name = parent.GenerateVersionName(letter_in);
languageName = parent.languageName;
style = Global.getSetting(SettingName.FREE_FORM).toBoolean() ? LanguageStyle.free : LanguageStyle.fixed;
style = ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.FREE_FORM).toBoolean() ? LanguageStyle.free : LanguageStyle.fixed;
description = description_in;
original = original_in;
Home = Paths.get(parent_in.Home.getAbsolutePath(), name).toFile();
@@ -691,7 +693,7 @@ public class db_project_info extends DBObject {
Utils.forceDeleteWithCheck(file);
}
public void CreateInterruptFile() throws Exception {
FileUtils.write(getInterruptFile(), CommonUtils.mode.toString());
FileUtils.write(getInterruptFile(), Global.mode.toString());
}
public void AppendScenario(String line_in) {
Scenario += (line_in + "\n");
@@ -864,7 +866,7 @@ public class db_project_info extends DBObject {
for (DBProjectFile file : parent.db.files.Data.values()) {
Files.copy(file.file.toPath(),
Paths.get(Home.getAbsolutePath(),
CommonUtils.isWindows ? file.name :
CommonUtils.isWindows() ? file.name :
file.name.replace('\\', '/')));
}
}
@@ -904,7 +906,7 @@ public class db_project_info extends DBObject {
}
}
public void createEmptyVersion(String versionLetter, String versionDescription) throws Exception {
boolean needsM = Global.getSetting(SettingName.SaveModifications).toBoolean();
boolean needsM = ((GlobalDatabase)CommonUtils.db).settings.get(SettingName.SaveModifications).toBoolean();
if (needsM)
createModification();
last_version = new db_project_info(
@@ -1088,7 +1090,7 @@ public class db_project_info extends DBObject {
for (DBProjectFile file : db.files.Data.values()) {
File src_file = file.file;
File dst_file = Paths.get(dst.getAbsolutePath(),
CommonUtils.isWindows ? file.name :
CommonUtils.isWindows() ? file.name :
file.name.replace('\\', '/')).toFile();
Files.copy(src_file.toPath(), dst_file.toPath());
}
@@ -1160,7 +1162,7 @@ public class db_project_info extends DBObject {
String[] localSplit = splited[idx++].split(" ");
int m_type = Integer.parseInt(localSplit[0]);
if (m_type == 1) {
UI.Info(packed_messages);
CommonUI.Info(packed_messages);
return true;
}
}