no message
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Current_;
|
||||
import Common.Utils.CommonUtils;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
||||
import _VisualDVM.GlobalData.SapforProfileSetting.SapforProfileSetting;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.Pass_2021;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
import Visual_DVM_2021.Passes.Pass;
|
||||
|
||||
import java.util.Vector;
|
||||
public class ApplyProfile extends Pass_2021<SapforProfile> {
|
||||
public class ApplyProfile extends Pass<SapforProfile> {
|
||||
@Override
|
||||
public String getIconPath() {
|
||||
return "/icons/Apply.png";
|
||||
@@ -24,8 +24,8 @@ public class ApplyProfile extends Pass_2021<SapforProfile> {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (CurrentAnchestor.Check(Log, Current.SapforProfile)) {
|
||||
target = (SapforProfile) CurrentAnchestor.get(Current.SapforProfile);
|
||||
if (Current_.Check(Log, Current.SapforProfile)) {
|
||||
target = (SapforProfile) Current_.get(Current.SapforProfile);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -39,7 +39,7 @@ public class ApplyProfile extends Pass_2021<SapforProfile> {
|
||||
//--
|
||||
for (SapforProfileSetting setting : settings)
|
||||
if (((GlobalDatabase)CommonUtils.db).settings.containsKey(setting.name))
|
||||
passes.get(PassCode_2021.UpdateSetting).Do(setting.name, setting.value);
|
||||
passes.get(PassCode.UpdateSetting).Do(setting.name, setting.value);
|
||||
//--
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user