Files
VisualSapfor/src/Visual_DVM_2021/Passes/All/CloseProject.java

25 lines
775 B
Java
Raw Normal View History

package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
2024-10-07 22:04:09 +03:00
import Common.Utils.CommonUtils;
import Common_old.Current;
2023-09-17 22:13:42 +03:00
import ProjectData.Project.db_project_info;
import Visual_DVM_2021.Passes.Pass_2021;
2023-09-17 22:13:42 +03:00
import java.io.File;
public class CloseProject extends Pass_2021<db_project_info> {
@Override
protected boolean canStart(Object... args) throws Exception {
return (target = Current.getProject()) != null;
}
@Override
protected void body() throws Exception {
target.Close();
}
@Override
protected void performDone() throws Exception {
Current.getSapfor().ResetAllAnalyses();
2024-10-07 22:04:09 +03:00
Current.getSapfor().cd(new File(CommonUtils.Home));
CurrentAnchestor.set(Current.Project, null);
2023-09-17 22:13:42 +03:00
//-
}
}