перенос проходов в центральный модуль
This commit is contained in:
@@ -315,7 +315,7 @@ public abstract class Sapfor extends OSDComponent {
|
||||
DBProjectFile cuf = null;
|
||||
if (Global.mainModule.HasFile()) {
|
||||
cuf = Global.mainModule.getFile();
|
||||
Pass.passes.get(PassCode.CloseCurrentFile).Do();
|
||||
Global.mainModule.getPass(PassCode.CloseCurrentFile).Do();
|
||||
}
|
||||
if (mode) //модификация
|
||||
{
|
||||
@@ -339,23 +339,23 @@ public abstract class Sapfor extends OSDComponent {
|
||||
} else UI_.Info("Сохранение файлов отсутствует.");
|
||||
}
|
||||
if (cuf != null)
|
||||
Pass.passes.get(PassCode.OpenCurrentFile).Do(cuf);
|
||||
Global.mainModule.getPass(PassCode.OpenCurrentFile).Do(cuf);
|
||||
}
|
||||
//</editor-fold>
|
||||
public Visual_DVM_2021.Passes.SapforAnalysis getAnalysisByPhase(String phase) {
|
||||
for (PassCode analysis_code : getAnalysesCodes()) {
|
||||
Visual_DVM_2021.Passes.SapforAnalysis analysis = (Visual_DVM_2021.Passes.SapforAnalysis) Pass.passes.get(analysis_code);
|
||||
Visual_DVM_2021.Passes.SapforAnalysis analysis = (Visual_DVM_2021.Passes.SapforAnalysis) Global.mainModule.getPass(analysis_code);
|
||||
if (analysis.phase().equals(phase)) return analysis;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public void ResetAllAnalyses() {
|
||||
for (PassCode code : getAnalysesCodes())
|
||||
(Pass.passes.get(code)).Reset();
|
||||
( Global.mainModule.getPass(code)).Reset();
|
||||
//------------------------------------------------------------------------------------------>>>> пакетный режим.
|
||||
if (UI_.isActive()) {
|
||||
Pass.passes.get(PassCode.Precompilation).Reset();
|
||||
Pass.passes.get(PassCode.SPF_GetGCovInfo).Reset();
|
||||
Global.mainModule.getPass(PassCode.Precompilation).Reset();
|
||||
Global.mainModule.getPass(PassCode.SPF_GetGCovInfo).Reset();
|
||||
}
|
||||
Global.enable_text_changed = false;
|
||||
Global.transformationPermission = TransformationPermission.None;
|
||||
|
||||
Reference in New Issue
Block a user