2023-12-14 02:30:56 +03:00
|
|
|
package Visual_DVM_2021.Passes.All;
|
|
|
|
|
import Common.Global;
|
|
|
|
|
import Common.UI.UI;
|
2023-12-17 21:38:54 +03:00
|
|
|
import Common.Utils.Utils;
|
2023-12-14 02:30:56 +03:00
|
|
|
import TestingSystem.DVM.DVMPackage.DVMPackage;
|
2023-12-15 20:39:49 +03:00
|
|
|
import Visual_DVM_2021.Passes.DeleteTestingPackages;
|
2023-12-15 20:29:24 +03:00
|
|
|
|
2023-12-17 21:38:54 +03:00
|
|
|
import java.io.File;
|
2023-12-15 20:39:49 +03:00
|
|
|
public class DeleteDVMPackage extends DeleteTestingPackages<DVMPackage> {
|
2023-12-14 02:30:56 +03:00
|
|
|
public DeleteDVMPackage() {
|
2023-12-15 20:39:49 +03:00
|
|
|
super(DVMPackage.class);
|
2023-12-14 02:30:56 +03:00
|
|
|
}
|
|
|
|
|
protected void showPreparation() throws Exception {
|
2023-12-15 20:29:24 +03:00
|
|
|
super.showPreparation();
|
2023-12-14 02:30:56 +03:00
|
|
|
UI.getMainWindow().getTestingWindow().DropTestRunTasksComparison();
|
|
|
|
|
}
|
2023-12-17 21:38:54 +03:00
|
|
|
@Override
|
|
|
|
|
protected void performDone() throws Exception {
|
|
|
|
|
super.performDone();
|
|
|
|
|
for (Object object : target) {
|
|
|
|
|
int id = (int) object;
|
|
|
|
|
File workspace = new File(Global.PackagesDirectory, String.valueOf(id));
|
|
|
|
|
Utils.forceDeleteWithCheck(workspace);
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-12-14 02:30:56 +03:00
|
|
|
}
|
|
|
|
|
|