2023-09-17 22:13:42 +03:00
|
|
|
package GlobalData.EnvironmentValue;
|
2024-10-07 14:22:52 +03:00
|
|
|
import Common.CommonConstants;
|
|
|
|
|
import Common.Utils.CommonUtils;
|
2024-10-09 22:01:19 +03:00
|
|
|
import _VisualDVM.Current;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common.Database.Objects.iDBObject;
|
2023-09-17 22:13:42 +03:00
|
|
|
public class EnvironmentValue extends iDBObject {
|
|
|
|
|
public String name = "";
|
|
|
|
|
public String value = "";
|
2024-10-07 14:22:52 +03:00
|
|
|
public int machine_id = CommonConstants.Nan; //для удаления машин
|
|
|
|
|
public int run_configuration_id = CommonConstants.Nan;
|
2023-09-17 22:13:42 +03:00
|
|
|
@Override
|
|
|
|
|
public boolean isVisible() {
|
|
|
|
|
return Current.HasRunConfiguration() && (run_configuration_id == Current.getRunConfiguration().id);
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
2024-10-07 14:22:52 +03:00
|
|
|
return name + "=" + CommonUtils.DQuotes(value);
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
}
|