упорядочил папки с кодом.

This commit is contained in:
2023-11-19 01:53:56 +03:00
parent 4883b4af51
commit 44c6daffa3
596 changed files with 2140 additions and 1569 deletions

View File

@@ -1,41 +0,0 @@
package Visual_DVM_2021.Passes.All;
import Common.Global;
import Common.Utils.Utils;
import GlobalData.Tasks.RunTask.RunTask;
import Visual_DVM_2021.Passes.Pass_2021;
import java.util.Vector;
public class DeleteSelectedRunTasks extends Pass_2021<Vector<RunTask>> {
@Override
public String getIconPath() {
return "/icons/Delete.png";
}
@Override
public String getButtonText() {
return "";
}
@Override
protected boolean canStart(Object... args) throws Exception {
target = new Vector<>();
Global.db.runTasks.Data.values().stream().filter(task -> task.isVisible() && task.isSelected() && task.isPassive()).forEach(task -> target.add(task));
if (target.isEmpty()) {
Log.Writeln_("Не отмечено ни одной задачи для удаления.");
return false;
} else return true;
}
@Override
protected void showPreparation() throws Exception {
Global.db.runTasks.ClearUI();
}
@Override
protected void body() throws Exception {
for (RunTask task : target) {
Global.db.Delete(task);
Utils.forceDeleteWithCheck(task.getLocalWorkspace());
}
}
@Override
protected void showFinish() throws Exception {
Global.db.runTasks.ShowUI();
}
}