постепенное выведение старой концепции текущих объектов, касаемо табличных лучше держать их в интерфейсе таблиц, чтобы не писать описание объекта дважды и не мучиться с типом. некоторые фиксы

This commit is contained in:
2024-10-24 23:40:24 +03:00
parent f811d9b3ac
commit 36c11ac93f
153 changed files with 765 additions and 739 deletions

View File

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