no message

This commit is contained in:
2024-10-22 20:18:50 +03:00
parent c160a20d06
commit cee06af384
8 changed files with 12 additions and 10 deletions

View File

@@ -205,9 +205,7 @@ public class Global {
components.put(ComponentType.PerformanceAnalyzer, performanceAnalyzer = new PerformanceAnalyzer()); components.put(ComponentType.PerformanceAnalyzer, performanceAnalyzer = new PerformanceAnalyzer());
components.put(ComponentType.Instruction, new Instruction()); components.put(ComponentType.Instruction, new Instruction());
//- //-
for (Component component : components.Data.values()) components.initialVersionsCheck();
// if (component.isVisible())
component.InitialVersionCheck();
//- //-
AbstractTokenMakerFactory atmf = (AbstractTokenMakerFactory) TokenMakerFactory.getDefaultInstance(); AbstractTokenMakerFactory atmf = (AbstractTokenMakerFactory) TokenMakerFactory.getDefaultInstance();
atmf.putMapping("text/FortranSPF", "_VisualDVM.Visual.Syntax.FortranSPFTokenMaker"); atmf.putMapping("text/FortranSPF", "_VisualDVM.Visual.Syntax.FortranSPFTokenMaker");

View File

@@ -48,6 +48,6 @@ public class InstallComponentFromFolder extends CurrentComponentPass {
} }
@Override @Override
protected void showDone() throws Exception { protected void showDone() throws Exception {
Global.components.RefreshUpdatesStatus(); Global.components.refreshUpdatesStatus();
} }
} }

View File

@@ -120,7 +120,7 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
} }
@Override @Override
protected void showDone() throws Exception { protected void showDone() throws Exception {
Global.components.RefreshUpdatesStatus(); Global.components.refreshUpdatesStatus();
} }
} }

View File

@@ -58,6 +58,6 @@ public class ResurrectComponent extends CurrentComponentPass {
} }
@Override @Override
protected void showDone() throws Exception { protected void showDone() throws Exception {
Global.components.RefreshUpdatesStatus(); Global.components.refreshUpdatesStatus();
} }
} }

View File

@@ -116,6 +116,6 @@ public class ResurrectComponentFromServer extends CurrentComponentPass {
} }
@Override @Override
protected void showDone() throws Exception { protected void showDone() throws Exception {
Global.components.RefreshUpdatesStatus(); Global.components.refreshUpdatesStatus();
} }
} }

View File

@@ -43,6 +43,6 @@ public class UpdateComponent extends Pass<Component> {
} }
@Override @Override
protected void showDone() throws Exception { protected void showDone() throws Exception {
Global.components.RefreshUpdatesStatus(); Global.components.refreshUpdatesStatus();
} }
} }

View File

@@ -32,7 +32,7 @@ public class ComponentsSet extends DataSet<ComponentType, Component> {
return new ComponentsForm(this, mountPanel); return new ComponentsForm(this, mountPanel);
} }
//-- //--
public void RefreshUpdatesStatus() { public void refreshUpdatesStatus() {
if (getUI() != null) if (getUI() != null)
getUI().Refresh(); getUI().Refresh();
validateStates(); validateStates();
@@ -65,4 +65,8 @@ public class ComponentsSet extends DataSet<ComponentType, Component> {
} }
return !bad_state; return !bad_state;
} }
public void initialVersionsCheck(){
for (Component component : Data.values())
component.InitialVersionCheck();
}
} }

View File

@@ -32,7 +32,7 @@ public class MainMenuBar extends VisualiserMenuBar {
UI.Info("Перед работой с компонентами закройте анализатор производительности!"); UI.Info("Перед работой с компонентами закройте анализатор производительности!");
} else { } else {
Global.mainModule.getPass(PassCode.GetComponentsActualVersions).Do(); Global.mainModule.getPass(PassCode.GetComponentsActualVersions).Do();
Global.components.RefreshUpdatesStatus(); Global.components.refreshUpdatesStatus();
Global.mainModule.getUI().getComponentsWindow().ShowDialog(""); Global.mainModule.getUI().getComponentsWindow().ShowDialog("");
} }
}); });