рефакторинг хранения окон
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package _VisualDVM.Visual.Menus.FileMenuBar;
|
||||
import Common.Visual.Controls.MenuBarButton;
|
||||
import Common.Visual.Menus.VisualiserMenuBar;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
import _VisualDVM.ProjectData.Files.UI.Editor.SPFEditor;
|
||||
import _VisualDVM.Visual.UI;
|
||||
@@ -19,7 +20,7 @@ public class FileMenuBar extends VisualiserMenuBar {
|
||||
{
|
||||
setToolTipText("Поиск(Ctrl+F)");
|
||||
setIcon("/icons/LastOpened.png");
|
||||
addActionListener(e -> UI.ShowSearchForm());
|
||||
addActionListener(e -> Global.mainModule.getUI().ShowSearchForm());
|
||||
}
|
||||
});
|
||||
addPasses(PassCode.Save);
|
||||
|
||||
@@ -22,7 +22,7 @@ public class FileSettingsMenu extends VisualiserMenu {
|
||||
if (Global.mainModule.getFile().UpdateLanguage(languageName)) {
|
||||
Global.mainModule.getSapfor().ResetAllAnalyses();
|
||||
Global.mainModule.getFile().form.ShowLanguage();
|
||||
UI.getMainWindow().getProjectWindow().getFilesTreeForm().getTree().RefreshNode(Global.mainModule.getFile().node);
|
||||
Global.mainModule.getUI().getMainWindow().getProjectWindow().getFilesTreeForm().getTree().RefreshNode(Global.mainModule.getFile().node);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -44,7 +44,7 @@ public class FileSettingsMenu extends VisualiserMenu {
|
||||
public void action(FileType fileType) {
|
||||
if (Global.mainModule.getFile().UpdateType(fileType)) {
|
||||
Global.mainModule.getSapfor().ResetAllAnalyses();
|
||||
UI.getMainWindow().getProjectWindow().getFilesTreeForm().getTree().RefreshNode(Global.mainModule.getFile().node);
|
||||
Global.mainModule.getUI().getMainWindow().getProjectWindow().getFilesTreeForm().getTree().RefreshNode(Global.mainModule.getFile().node);
|
||||
Global.mainModule.getFile().form.ShowType();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user