рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -2,6 +2,7 @@ package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Visual.UI;
|
||||
import Common.Utils.Index;
|
||||
import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
@@ -16,8 +17,8 @@ import java.util.Vector;
|
||||
public class SPF_GetGraphFunctions extends SapforAnalysis {
|
||||
@Override
|
||||
protected void showPreparation() {
|
||||
if (Current.HasFile())
|
||||
Current.getFile().form.ShowNoFunctions();
|
||||
if (Global.mainModule.HasFile())
|
||||
Global.mainModule.getFile().form.ShowNoFunctions();
|
||||
UI.getMainWindow().getProjectWindow().ShowNoFunctions();
|
||||
if (SPF_GetGraphFunctionPositions.showByCurrentFunction)
|
||||
UI.getMainWindow().getProjectWindow().getFunctionsWindow().ShowNoCurrentFunction();
|
||||
@@ -33,8 +34,8 @@ public class SPF_GetGraphFunctions extends SapforAnalysis {
|
||||
@Override
|
||||
protected void performPreparation() throws Exception {
|
||||
super.performPreparation(); //удаление интеррупта.
|
||||
Current_.set(Current.Function, null);
|
||||
Current_.set(Current.SelectedFunction,null);
|
||||
Global.mainModule.set(Current.Function, null);
|
||||
Global.mainModule.set(Current.SelectedFunction,null);
|
||||
target.main_function = null;
|
||||
target.main_functionH = null;
|
||||
target.allFunctions.clear();
|
||||
@@ -130,8 +131,8 @@ public class SPF_GetGraphFunctions extends SapforAnalysis {
|
||||
@Override
|
||||
protected void FocusResult() {
|
||||
super.FocusResult();
|
||||
if (Current.HasFile())
|
||||
Current.getFile().form.FocusFunctions();
|
||||
if (Global.mainModule.HasFile())
|
||||
Global.mainModule.getFile().form.FocusFunctions();
|
||||
UI.getMainWindow().getProjectWindow().FocusFunctions();
|
||||
}
|
||||
@Override
|
||||
@@ -139,8 +140,8 @@ public class SPF_GetGraphFunctions extends SapforAnalysis {
|
||||
super.showDone();
|
||||
UI.getMainWindow().getProjectWindow().getAnalysisWindow().ShowFunctionsCount();
|
||||
UI.getMainWindow().getProjectWindow().getAnalysisWindow().ShowRegions();
|
||||
if (Current.HasFile())
|
||||
Current.getFile().form.ShowFunctions();
|
||||
if (Global.mainModule.HasFile())
|
||||
Global.mainModule.getFile().form.ShowFunctions();
|
||||
passes.get(PassCode.SPF_GetGraphFunctionPositions).Do();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user