2023-11-19 02:12:44 +03:00
|
|
|
package Visual_DVM_2021.Passes.All;
|
2024-10-08 00:39:13 +03:00
|
|
|
import Common.CurrentAnchestor;
|
2024-10-07 22:04:09 +03:00
|
|
|
import Common.Utils.CommonUtils;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common_old.Current;
|
2023-09-17 22:13:42 +03:00
|
|
|
import ProjectData.Project.db_project_info;
|
2023-11-19 02:12:44 +03:00
|
|
|
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));
|
2024-10-08 00:39:13 +03:00
|
|
|
CurrentAnchestor.set(Current.Project, null);
|
2023-09-17 22:13:42 +03:00
|
|
|
//-
|
|
|
|
|
}
|
|
|
|
|
}
|