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

23 lines
768 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;
2024-10-09 22:01:19 +03:00
import _VisualDVM.Current;
2024-10-09 22:21:57 +03:00
import _VisualDVM.ProjectData.Project.db_project_info;
import Visual_DVM_2021.Passes.Pass_2021;
2023-09-17 22:13:42 +03:00
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-08 22:33:49 +03:00
Current.getSapfor().cd(CommonUtils.getHomeDirectory());
CurrentAnchestor.set(Current.Project, null);
2023-09-17 22:13:42 +03:00
//-
}
}