2023-11-19 02:12:44 +03:00
|
|
|
package Visual_DVM_2021.Passes.All;
|
2024-10-07 00:58:29 +03:00
|
|
|
import Common_old.Current;
|
|
|
|
|
import Common_old.UI.UI;
|
2023-11-19 02:12:44 +03:00
|
|
|
import Visual_DVM_2021.Passes.CurrentProjectPass;
|
2023-09-17 22:13:42 +03:00
|
|
|
public class CleanAnalyses extends CurrentProjectPass {
|
|
|
|
|
@Override
|
|
|
|
|
protected boolean canStart(Object... args) throws Exception {
|
|
|
|
|
return super.canStart(args) && (Current.getSapfor() != null);
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void body() throws Exception {
|
|
|
|
|
Current.getSapfor().ResetAllAnalyses();
|
|
|
|
|
target.CleanAnalyses();
|
|
|
|
|
target.CreateParserOptionsDirs();
|
|
|
|
|
target.ClearGCOV();
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
protected void showDone() throws Exception {
|
|
|
|
|
super.showDone();
|
|
|
|
|
UI.getMainWindow().getProjectWindow().RefreshProjectFiles();
|
|
|
|
|
UI.getMainWindow().getProjectWindow().ShowNoAnalyses();
|
|
|
|
|
UI.getMainWindow().getProjectWindow().ShowProjectSapforLog();
|
|
|
|
|
if (Current.HasFile()) {
|
|
|
|
|
Current.getFile().form.ShowNoMessages();
|
|
|
|
|
Current.getFile().form.ShowNoAnalyses();
|
|
|
|
|
Current.getFile().form.ShowNoGCOVLog();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|