diff --git a/src/_VisualDVM/Global.java b/src/_VisualDVM/Global.java index aa34b265..47e71769 100644 --- a/src/_VisualDVM/Global.java +++ b/src/_VisualDVM/Global.java @@ -205,9 +205,7 @@ public class Global { components.put(ComponentType.PerformanceAnalyzer, performanceAnalyzer = new PerformanceAnalyzer()); components.put(ComponentType.Instruction, new Instruction()); //- - for (Component component : components.Data.values()) - // if (component.isVisible()) - component.InitialVersionCheck(); + components.initialVersionsCheck(); //- AbstractTokenMakerFactory atmf = (AbstractTokenMakerFactory) TokenMakerFactory.getDefaultInstance(); atmf.putMapping("text/FortranSPF", "_VisualDVM.Visual.Syntax.FortranSPFTokenMaker"); diff --git a/src/_VisualDVM/Passes/All/InstallComponentFromFolder.java b/src/_VisualDVM/Passes/All/InstallComponentFromFolder.java index b61a4369..2eda76e4 100644 --- a/src/_VisualDVM/Passes/All/InstallComponentFromFolder.java +++ b/src/_VisualDVM/Passes/All/InstallComponentFromFolder.java @@ -48,6 +48,6 @@ public class InstallComponentFromFolder extends CurrentComponentPass { } @Override protected void showDone() throws Exception { - Global.components.RefreshUpdatesStatus(); + Global.components.refreshUpdatesStatus(); } } diff --git a/src/_VisualDVM/Passes/All/PublishComponent.java b/src/_VisualDVM/Passes/All/PublishComponent.java index dceea501..fd7b9dec 100644 --- a/src/_VisualDVM/Passes/All/PublishComponent.java +++ b/src/_VisualDVM/Passes/All/PublishComponent.java @@ -120,7 +120,7 @@ public class PublishComponent extends ComponentsRepositoryPass { } @Override protected void showDone() throws Exception { - Global.components.RefreshUpdatesStatus(); + Global.components.refreshUpdatesStatus(); } } diff --git a/src/_VisualDVM/Passes/All/ResurrectComponent.java b/src/_VisualDVM/Passes/All/ResurrectComponent.java index caf8dbe4..195b3e7d 100644 --- a/src/_VisualDVM/Passes/All/ResurrectComponent.java +++ b/src/_VisualDVM/Passes/All/ResurrectComponent.java @@ -58,6 +58,6 @@ public class ResurrectComponent extends CurrentComponentPass { } @Override protected void showDone() throws Exception { - Global.components.RefreshUpdatesStatus(); + Global.components.refreshUpdatesStatus(); } } diff --git a/src/_VisualDVM/Passes/All/ResurrectComponentFromServer.java b/src/_VisualDVM/Passes/All/ResurrectComponentFromServer.java index f8a757ff..1c408068 100644 --- a/src/_VisualDVM/Passes/All/ResurrectComponentFromServer.java +++ b/src/_VisualDVM/Passes/All/ResurrectComponentFromServer.java @@ -116,6 +116,6 @@ public class ResurrectComponentFromServer extends CurrentComponentPass { } @Override protected void showDone() throws Exception { - Global.components.RefreshUpdatesStatus(); + Global.components.refreshUpdatesStatus(); } } diff --git a/src/_VisualDVM/Passes/All/UpdateComponent.java b/src/_VisualDVM/Passes/All/UpdateComponent.java index 460d7dae..dc1e760f 100644 --- a/src/_VisualDVM/Passes/All/UpdateComponent.java +++ b/src/_VisualDVM/Passes/All/UpdateComponent.java @@ -43,6 +43,6 @@ public class UpdateComponent extends Pass { } @Override protected void showDone() throws Exception { - Global.components.RefreshUpdatesStatus(); + Global.components.refreshUpdatesStatus(); } } diff --git a/src/_VisualDVM/Repository/Component/ComponentsSet.java b/src/_VisualDVM/Repository/Component/ComponentsSet.java index fda7c402..de0f585f 100644 --- a/src/_VisualDVM/Repository/Component/ComponentsSet.java +++ b/src/_VisualDVM/Repository/Component/ComponentsSet.java @@ -32,7 +32,7 @@ public class ComponentsSet extends DataSet { return new ComponentsForm(this, mountPanel); } //-- - public void RefreshUpdatesStatus() { + public void refreshUpdatesStatus() { if (getUI() != null) getUI().Refresh(); validateStates(); @@ -65,4 +65,8 @@ public class ComponentsSet extends DataSet { } return !bad_state; } + public void initialVersionsCheck(){ + for (Component component : Data.values()) + component.InitialVersionCheck(); + } } diff --git a/src/_VisualDVM/Visual/Menus/MainMenuBar/MainMenuBar.java b/src/_VisualDVM/Visual/Menus/MainMenuBar/MainMenuBar.java index 1bf1ad80..6f83fe59 100644 --- a/src/_VisualDVM/Visual/Menus/MainMenuBar/MainMenuBar.java +++ b/src/_VisualDVM/Visual/Menus/MainMenuBar/MainMenuBar.java @@ -32,7 +32,7 @@ public class MainMenuBar extends VisualiserMenuBar { UI.Info("Перед работой с компонентами закройте анализатор производительности!"); } else { Global.mainModule.getPass(PassCode.GetComponentsActualVersions).Do(); - Global.components.RefreshUpdatesStatus(); + Global.components.refreshUpdatesStatus(); Global.mainModule.getUI().getComponentsWindow().ShowDialog(""); } });