no message
This commit is contained in:
@@ -29,7 +29,6 @@ import _VisualDVM.Passes.PassCode;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.Date;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Vector;
|
||||
public class GlobalDatabase extends VisualiserDatabase {
|
||||
//---------СЕАНС----------------------------------------------
|
||||
public MachinesDBTable machines;
|
||||
@@ -89,19 +88,19 @@ public class GlobalDatabase extends VisualiserDatabase {
|
||||
}
|
||||
//todo централизованное сохранение текущих объектов в базах
|
||||
public void SaveCredentials() {
|
||||
Global.properties.updateField("lastMachineId", getTable(Machine.class).getUI().getCurrentPK(CommonConstants.Nan));
|
||||
Global.properties.updateField("lastUserId", getTable(User.class).getUI().getCurrentPK(CommonConstants.Nan));
|
||||
Global.properties.updateField("lastCompilerId", getTable(Compiler.class).getUI().getCurrentPK(CommonConstants.Nan));
|
||||
Global.normalProperties.updateField("lastMachineId", getTable(Machine.class).getUI().getCurrentPK(CommonConstants.Nan));
|
||||
Global.normalProperties.updateField("lastUserId", getTable(User.class).getUI().getCurrentPK(CommonConstants.Nan));
|
||||
Global.normalProperties.updateField("lastCompilerId", getTable(Compiler.class).getUI().getCurrentPK(CommonConstants.Nan));
|
||||
}
|
||||
public void RestoreCredentials() {
|
||||
if (Global.properties.lastMachineId != CommonConstants.Nan) {
|
||||
getTable(Machine.class).getUI().SetCurrentByPK(Global.properties.lastMachineId);
|
||||
if (Global.normalProperties.lastMachineId != CommonConstants.Nan) {
|
||||
getTable(Machine.class).getUI().SetCurrentByPK(Global.normalProperties.lastMachineId);
|
||||
//-
|
||||
if (Global.properties.lastUserId != CommonConstants.Nan)
|
||||
getTable(User.class).getUI().SetCurrentByPK(Global.properties.lastUserId);
|
||||
if (Global.normalProperties.lastUserId != CommonConstants.Nan)
|
||||
getTable(User.class).getUI().SetCurrentByPK(Global.normalProperties.lastUserId);
|
||||
//--
|
||||
if (Global.properties.lastCompilerId != CommonConstants.Nan)
|
||||
getTable(Compiler.class).getUI().SetCurrentByPK(Global.properties.lastCompilerId);
|
||||
if (Global.normalProperties.lastCompilerId != CommonConstants.Nan)
|
||||
getTable(Compiler.class).getUI().SetCurrentByPK(Global.normalProperties.lastCompilerId);
|
||||
}
|
||||
}
|
||||
//--
|
||||
|
||||
@@ -17,7 +17,7 @@ public class WindowsLocalCompilationSupervisor extends WindowsLocalTaskSuperviso
|
||||
}
|
||||
@Override
|
||||
protected String getScriptText() {
|
||||
return Utils_.DQuotes(Global.properties.LocalMakePathWindows) + " 1>out.txt 2>err.txt";
|
||||
return Utils_.DQuotes(Global.normalProperties.LocalMakePathWindows) + " 1>out.txt 2>err.txt";
|
||||
}
|
||||
//скорее всего как то выделить подготовку к компиляции как метод предка.
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user