рефакторинг. переносил текущие объекты в другое место

This commit is contained in:
2024-10-13 22:08:13 +03:00
parent 09b64218bd
commit 6afa2dc892
240 changed files with 1472 additions and 1518 deletions

View File

@@ -1,11 +1,10 @@
package Visual_DVM_2021.Passes.All;
import Common.Current_;
import Common.Utils.Utils_;
import _VisualDVM.Current;
import _VisualDVM.Visual.UI;
import _VisualDVM.ProjectData.Files.DBProjectFile;
import Visual_DVM_2021.Passes.PassCode;
import Common.Passes.Pass;
import Common.Utils.Utils_;
import Visual_DVM_2021.Passes.PassCode;
import _VisualDVM.Global;
import _VisualDVM.ProjectData.Files.DBProjectFile;
import _VisualDVM.Visual.UI;
import javax.swing.*;
public class CloseCurrentFile extends Pass<DBProjectFile> {
@@ -23,7 +22,7 @@ public class CloseCurrentFile extends Pass<DBProjectFile> {
}
@Override
protected boolean canStart(Object... args) throws Exception {
return (target = Current.getFile()) != null;
return (target = Global.mainModule.getFile()) != null;
}
@Override
protected void body() throws Exception {
@@ -36,13 +35,7 @@ public class CloseCurrentFile extends Pass<DBProjectFile> {
}
@Override
protected void performDone() throws Exception {
Current_.set(Current.File, null);
Current_.set(Current.FileGraphElement, null);
//-
Current_.set(Current.Notes, null);
Current_.set(Current.Warnings, null);
Current_.set(Current.Errors, null);
//-
Global.mainModule.DropCurrentFile();
}
@Override
protected void showDone() throws Exception {