рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -3,6 +3,7 @@ import Common.CommonConstants;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Database.Objects.iDBObject;
|
||||
import _VisualDVM.Global;
|
||||
public class EnvironmentValue extends iDBObject {
|
||||
public String name = "";
|
||||
public String value = "";
|
||||
@@ -10,7 +11,7 @@ public class EnvironmentValue extends iDBObject {
|
||||
public int run_configuration_id = CommonConstants.Nan;
|
||||
@Override
|
||||
public boolean isVisible() {
|
||||
return Current.HasRunConfiguration() && (run_configuration_id == Current.getRunConfiguration().id);
|
||||
return Global.mainModule.matchCurrentID(Current.RunConfiguration, run_configuration_id);
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
@@ -53,8 +53,8 @@ public class EnvironmentValuesDBTable extends iDBTable<EnvironmentValue> {
|
||||
}
|
||||
@Override
|
||||
public void ProcessResult() {
|
||||
Result.machine_id = Current.getMachine().id;
|
||||
Result.run_configuration_id = Current.getRunConfiguration().id;
|
||||
Result.machine_id = Global.mainModule.getMachine().id;
|
||||
Result.run_configuration_id = Global.mainModule.getRunConfiguration().id;
|
||||
Result.name = (String) fields.cbName.getSelectedItem();
|
||||
Result.value = fields.tfValue.getText();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user