28 lines
1.1 KiB
Java
28 lines
1.1 KiB
Java
package _VisualDVM.Passes.All;
|
|
import _VisualDVM.Global;
|
|
import _VisualDVM.Passes.Project.CurrentProjectPass;
|
|
public class CleanAnalyses extends CurrentProjectPass {
|
|
@Override
|
|
protected boolean canStart(Object... args) throws Exception {
|
|
return super.canStart(args) && (Global.mainModule.getSapfor() != null);
|
|
}
|
|
@Override
|
|
protected void body() throws Exception {
|
|
Global.mainModule.getSapfor().ResetAllAnalyses();
|
|
target.CleanAnalyses();
|
|
target.CreateParserOptionsDirs();
|
|
target.ClearGCOV();
|
|
}
|
|
@Override
|
|
protected void showDone() throws Exception {
|
|
super.showDone();
|
|
Global.mainModule.getUI().getMainWindow().getProjectWindow().RefreshProjectFiles();
|
|
Global.mainModule.getUI().getMainWindow().getProjectWindow().ShowNoAnalyses();
|
|
Global.mainModule.getUI().getMainWindow().getProjectWindow().ShowProjectSapforLog();
|
|
if (Global.mainModule.HasFile()) {
|
|
Global.mainModule.getFile().form.ShowNoMessages();
|
|
Global.mainModule.getFile().form.ShowNoAnalyses();
|
|
Global.mainModule.getFile().form.ShowNoGCOVLog();
|
|
}
|
|
}
|
|
} |