30 lines
1.1 KiB
Java
30 lines
1.1 KiB
Java
|
|
package TestingSystem.SAPFOR.SapforSettingsCommand;
|
||
|
|
import Common.Constants;
|
||
|
|
import Common.Current;
|
||
|
|
import Common.Database.DBObject;
|
||
|
|
import Common.Database.riDBObject;
|
||
|
|
import TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
||
|
|
import Visual_DVM_2021.Passes.PassCode_2021;
|
||
|
|
import com.sun.org.glassfish.gmbal.Description;
|
||
|
|
public class SapforSettingsCommand extends riDBObject {
|
||
|
|
@Description("DEFAULT -1")
|
||
|
|
public int sapforsettings_id = Constants.Nan;
|
||
|
|
public PassCode_2021 passCode = PassCode_2021.SPF_RemoveDvmDirectives;
|
||
|
|
@Override
|
||
|
|
public boolean isVisible() {
|
||
|
|
return Current.HasSapforSettings() && (Current.getSapforSettings().id == sapforsettings_id);
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
public void SynchronizeFields(DBObject src) {
|
||
|
|
super.SynchronizeFields(src);
|
||
|
|
SapforSettingsCommand c = (SapforSettingsCommand) src;
|
||
|
|
sapforsettings_id = c.sapforsettings_id;
|
||
|
|
passCode = c.passCode;
|
||
|
|
}
|
||
|
|
public SapforSettingsCommand() {
|
||
|
|
}
|
||
|
|
public SapforSettingsCommand(SapforSettingsCommand sapforSettingsCommand) {
|
||
|
|
this.SynchronizeFields(sapforSettingsCommand);
|
||
|
|
}
|
||
|
|
}
|