рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Visual_DVM_2021.Passes.CurrentProjectPass;
|
||||
public class CleanAnalyses extends CurrentProjectPass {
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
return super.canStart(args) && (Current.getSapfor() != null);
|
||||
return super.canStart(args) && (Global.mainModule.getSapfor() != null);
|
||||
}
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
Current.getSapfor().ResetAllAnalyses();
|
||||
Global.mainModule.getSapfor().ResetAllAnalyses();
|
||||
target.CleanAnalyses();
|
||||
target.CreateParserOptionsDirs();
|
||||
target.ClearGCOV();
|
||||
@@ -20,10 +21,10 @@ public class CleanAnalyses extends CurrentProjectPass {
|
||||
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();
|
||||
if (Global.mainModule.HasFile()) {
|
||||
Global.mainModule.getFile().form.ShowNoMessages();
|
||||
Global.mainModule.getFile().form.ShowNoAnalyses();
|
||||
Global.mainModule.getFile().form.ShowNoGCOVLog();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user