2023-09-17 22:13:42 +03:00
|
|
|
package Visual_DVM_2021.Passes.All;
|
|
|
|
|
import Common.Current;
|
|
|
|
|
import Common.Database.Database;
|
|
|
|
|
import Common.Global;
|
|
|
|
|
import Common.UI.UI;
|
2023-09-27 00:43:23 +03:00
|
|
|
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackage;
|
2023-09-17 22:13:42 +03:00
|
|
|
import Visual_DVM_2021.Passes.DeleteObjectPass;
|
2023-09-27 00:43:23 +03:00
|
|
|
public class DeleteSapforTasksPackage extends DeleteObjectPass<SapforTasksPackage> {
|
2023-09-17 22:13:42 +03:00
|
|
|
public DeleteSapforTasksPackage() {
|
2023-09-27 00:43:23 +03:00
|
|
|
super(SapforTasksPackage.class);
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected Database getDb() {
|
|
|
|
|
return Global.db;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void performPreparation() throws Exception {
|
|
|
|
|
if (Current.hasUI()) {
|
|
|
|
|
UI.getMainWindow().getTestingWindow().RemoveSapforPackageFromComparison(target);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void body() throws Exception {
|
|
|
|
|
super.body();
|
2023-09-27 00:43:23 +03:00
|
|
|
// Utils.delete_with_check(new File(target.workspace));
|
2023-09-17 22:13:42 +03:00
|
|
|
}
|
|
|
|
|
}
|