no message

This commit is contained in:
2025-01-11 23:19:24 +03:00
parent 7a06c2ce2b
commit d2c4794690
9 changed files with 21 additions and 29 deletions

View File

@@ -6,7 +6,6 @@ public enum SettingName {
SaveModifications, // сохранять исходную версию
GCOVLimit,
DVMConvertationOptions,
Kernels,
//--
//<editor-fold desc="Настройки сапфора. должны быть подряд!">
STATIC_SHADOW_ANALYSIS,
@@ -39,8 +38,6 @@ public enum SettingName {
return "Сохранять копию исходной версии при преобразованиях";
case DVMConvertationOptions:
return "Опции DVM конвертации";
case Kernels:
return "Число ядер при компиляции";
case GCOVLimit:
return "Нижний порог отображения GCOV";
case Precompilation:

View File

@@ -30,7 +30,6 @@ public class SettingsDBTable extends DBTable<SettingName, DBSetting> {
public void AddAll() throws Exception {
//проверка списка всех настроек.
//<editor-fold desc="Global">
AddSetting(new DBSetting(SettingName.Kernels, Utils.getHalfKernels(), SettingType.IntField, ComponentType.Visualiser));
//</editor-fold>
//--
//<editor-fold desc="Sapfor">

View File

@@ -94,6 +94,8 @@ public class GlobalProperties {
@Expose
public String LocalMakePathWindows= "C:\\MinGW\\msys\\1.0\\bin\\make.exe";
@Expose
public int Kernels= Utils.getHalfKernels();
@Expose
public int ComponentsBackUpsCount = 10;
@Expose
public boolean AutoCheckTesting = false; // проверять ли задачи тестирования при включенном визуализаторе.
@@ -187,6 +189,8 @@ public class GlobalProperties {
//-----------------
public String getFieldDescription(String fieldName) {
switch (fieldName) {
case "Kernels":
return "Число ядер при компиляции";
case "LocalMakePathWindows":
return "Путь к make.exe";
case "SmallScreen":

View File

@@ -185,10 +185,10 @@ public class Precompilation extends Pass<db_project_info> {
protected void body() throws Exception {
if (Utils_.isWindows()) {
name_to_kill = "make.exe";
StartProcess(Utils_.DQuotes(Global.properties.LocalMakePathWindows) + " -j " + (Global.mainModule.getDb()).settings.get(SettingName.Kernels).toString(),
StartProcess(Utils_.DQuotes(Global.properties.LocalMakePathWindows) + " -j " + Global.properties.Kernels,
target.compilation_maxtime);
} else
StartProcess("make -j " + (Global.mainModule.getDb()).settings.get(SettingName.Kernels).toString(), target.compilation_maxtime);
StartProcess("make -j " + Global.properties.Kernels, target.compilation_maxtime);
}
protected void StartProcess(String command, int TA) throws Exception {
killed = false;

View File

@@ -8,6 +8,7 @@ import Common.Visual.Windows.Dialog.VFileChooser;
import _VisualDVM.Global;
import _VisualDVM.GlobalProperties;
import _VisualDVM.Passes.PassCode;
import _VisualDVM.Utils;
import javax.swing.*;
import java.io.File;
@@ -35,6 +36,10 @@ public class UpdateProperty extends Pass<Object> {
return true;
}
switch (name){
case "Kernels":
if (sliderNumberForm.ShowDialog(description, oldValue, 1, Utils.getMaxKernels()))
newValue=sliderNumberForm.Result;
break;
case "LocalMakePathWindows":
fileChooser.setTitle(description);
File file = fileChooser.ShowDialog();

View File

@@ -41,19 +41,6 @@ public class UpdateSetting extends Pass<DBSetting> {
break;
}
break;
case IntField:
int min = 0;
int max = 0;
switch (target.Name) {
case Kernels:
min = 1;
max = Utils.getMaxKernels();
SliderNumberForm ffff = new SliderNumberForm();
if (ffff.ShowDialog(target.Name.getDescription(), target.toInt32(), min, max))
NewValue = String.valueOf(ffff.Result);
break;
}
break;
}
} else {
NewValue = args[1].toString();

View File

@@ -21,19 +21,19 @@ public class VisualiserSettingsMenu extends VisualiserMenu {
add(new SettingsSubmenu("Компиляция на локальной машине", null){
{
add(Global.properties.getMenuItem("LocalMakePathWindows"));
add(Global.properties.getMenuItem("Kernels"));
}
}
);
}else {
add(new SettingsSubmenu("Компиляция на локальной машине", null){
{
add(Global.properties.getMenuItem("Kernels"));
}
}
);
}
/*
SettingName.Kernels
));
} else {
add(new SettingsSubmenu("Компиляция на локальной машине", null,
SettingName.Kernels
));
}
*/
add(new SynchronizationSettingsMenu());
add(new VersionsComparisonMenu());
add(Global.properties.getMenuItem("Workspace"));