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

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

@@ -19,7 +19,7 @@ public class UpdateComponent extends Pass<Component> {
protected void body() throws Exception {
PassCode subPassCode = null;
//<editor-fold desc="получение нового файла компонента">
switch (Current.getComponent().getComponentType()) {
switch (Global.mainModule.getComponent().getComponentType()) {
case Sapfor_F:
case Visualizer_2:
subPassCode = Utils_.isWindows() ? PassCode.DownloadComponent : PassCode.BuildComponent;
@@ -32,15 +32,15 @@ public class UpdateComponent extends Pass<Component> {
}
if ((subPassCode != null) && passes.get(subPassCode).Do()) {
//</editor-fold>
if (!Current.getComponent().getNewFile().exists())
throw new PassException("Не удалось получить новый файл для компонента " + Current.getComponent().getComponentType().getDescription());
if (!Global.mainModule.getComponent().getNewFile().exists())
throw new PassException("Не удалось получить новый файл для компонента " + Global.mainModule.getComponent().getComponentType().getDescription());
//непосредственное обновление.
Current.getComponent().Update();
Global.mainModule.getComponent().Update();
}
}
@Override
protected void performFinish() throws Exception {
Current.getComponent().CheckIfNeedsUpdateOrPublish();
Global.mainModule.getComponent().CheckIfNeedsUpdateOrPublish();
}
@Override
protected void showDone() throws Exception {