no message
This commit is contained in:
@@ -46,7 +46,7 @@ public class SPFEditor extends BaseEditor implements SPFEditorInterface {
|
||||
highlighter = (RSyntaxTextAreaHighlighter) getHighlighter();
|
||||
autoComplete = new SapforAutoComplete(this);
|
||||
//-------------------------
|
||||
float font_size = (float) ((GlobalDatabase) Utils_.db).settings.get(SettingName.EditorFontSize).toInt32();
|
||||
float font_size = (float) (Global.mainModule.getDb()).settings.get(SettingName.EditorFontSize).toInt32();
|
||||
setFont(getFont().deriveFont(font_size));
|
||||
//-------------------------
|
||||
setText(Utils.ReadAllText(file.file).replace("\r", " "));
|
||||
@@ -167,7 +167,7 @@ public class SPFEditor extends BaseEditor implements SPFEditorInterface {
|
||||
Pair<Long, Integer> p = file.gcov_info.line_info.get(lineNum);
|
||||
Color color = never;
|
||||
if (p.getKey() > 0) {
|
||||
color = (p.getValue() >= ((GlobalDatabase) Utils_.db).settings.get(SettingName.GCOVLimit).toInt32()) ?
|
||||
color = (p.getValue() >= (Global.mainModule.getDb()).settings.get(SettingName.GCOVLimit).toInt32()) ?
|
||||
new Color(255, 255, (100 - p.getValue()), 90) : null;
|
||||
}
|
||||
if (color != null) {
|
||||
|
||||
@@ -31,7 +31,7 @@ public class Message extends FileObject {
|
||||
(Global.mode != Mode.Normal)) {
|
||||
value = value_in;
|
||||
} else {
|
||||
value = !((GlobalDatabase) Utils_.db).settings.get(SettingName.TRANSLATE_MESSAGES).toBoolean() ? value_in : decodeRussianMessage(value_in);
|
||||
value = !(Global.mainModule.getDb()).settings.get(SettingName.TRANSLATE_MESSAGES).toBoolean() ? value_in : decodeRussianMessage(value_in);
|
||||
}
|
||||
}
|
||||
// last code - 183
|
||||
|
||||
@@ -172,7 +172,7 @@ public class db_project_info extends DBObject {
|
||||
parent = parent_in;
|
||||
name = parent.GenerateVersionName(letter_in);
|
||||
languageName = parent.languageName;
|
||||
style = ((GlobalDatabase) Utils_.db).settings.get(SettingName.FREE_FORM).toBoolean() ? LanguageStyle.free : LanguageStyle.fixed;
|
||||
style = ((Global.mainModule.getDb()).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();
|
||||
@@ -906,7 +906,7 @@ public class db_project_info extends DBObject {
|
||||
}
|
||||
}
|
||||
public void createEmptyVersion(String versionLetter, String versionDescription) throws Exception {
|
||||
boolean needsM = ((GlobalDatabase) Utils_.db).settings.get(SettingName.SaveModifications).toBoolean();
|
||||
boolean needsM = (Global.mainModule.getDb()).settings.get(SettingName.SaveModifications).toBoolean();
|
||||
if (needsM)
|
||||
createModification();
|
||||
last_version = new db_project_info(
|
||||
|
||||
@@ -3,6 +3,7 @@ import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Database.Tables.DataSet;
|
||||
import Common.Visual.DataSetControlForm;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.GlobalData.Settings.SettingName;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
@@ -39,7 +40,7 @@ public class ArraysSet extends DataSet<Long, ProjectArray> {
|
||||
@Override
|
||||
protected void AdditionalInitColumns() {
|
||||
columns.get(0).setVisible(false);
|
||||
if (((GlobalDatabase) Utils_.db).settings.get(SettingName.ShowFullArraysDeclarations).toBoolean()) {
|
||||
if ((Global.mainModule.getDb()).settings.get(SettingName.ShowFullArraysDeclarations).toBoolean()) {
|
||||
columns.get(4).setRenderer(RendererHyperlinks);
|
||||
columns.get(4).setEditor(EditorHyperlinks);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user