|
|
|
@ -151,7 +151,7 @@ import com.fr.task.Once;
|
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
import com.fr.xml.ReportXMLUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import javax.swing.SwingWorker; |
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
@ -181,47 +181,34 @@ public class DesignComponent {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
private boolean hasUpdated = false; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* start |
|
|
|
|
*/ |
|
|
|
|
@Start |
|
|
|
|
public void start() { |
|
|
|
|
|
|
|
|
|
List<LocaleMarker> markers = new ArrayList<>(Carina.getApplicationContext().group(InterMutableKey.class).getAll()); |
|
|
|
|
for (LocaleMarker marker : markers) { |
|
|
|
|
if (marker.match(LocaleScope.DESIGN)) { |
|
|
|
|
DesignI18nImpl.getInstance().addResource(marker.getPath()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
CompletableFuture<Void> themeConfigPrepare = CompletableFuture.runAsync(() -> { |
|
|
|
|
FormThemeConfigMigrator.getInstance().upgrade(); |
|
|
|
|
ReportThemeConfigMigrator.getInstance().upgrade(); |
|
|
|
|
}, DesignerStartupPool.common()); |
|
|
|
|
|
|
|
|
|
CompletableFuture<Void> mainDesignerPrepare = CompletableFuture.runAsync(this::designerModuleStart, DesignerStartupPool.common()); |
|
|
|
|
|
|
|
|
|
CompletableFuture<Void> extendDesignerPrepare = CompletableFuture.runAsync(this::designerExtendStart, DesignerStartupPool.common()); |
|
|
|
|
|
|
|
|
|
CompletableFuture<Void> otherFeaturesPrepare = CompletableFuture.runAsync(() -> { |
|
|
|
|
startBBSLoginAuthServer(); |
|
|
|
|
migrateBBSInfoFromFineDB(); |
|
|
|
|
OSSupportCenter.buildAction(new OSBasedAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute(Object... objects) { |
|
|
|
|
UserInfoPane.getInstance().updateBBSUserInfo(); |
|
|
|
|
} |
|
|
|
|
}, SupportOSImpl.BBS_USER_LOGIN_PANE); |
|
|
|
|
OSSupportCenter.buildAction(objects -> UserInfoPane.getInstance().updateBBSUserInfo(), SupportOSImpl.BBS_USER_LOGIN_PANE); |
|
|
|
|
loadLogAppender(); |
|
|
|
|
//DesignerSocketIO.update();
|
|
|
|
|
DesignerWorkspaceLoader.init(); |
|
|
|
|
storePassport(); |
|
|
|
|
AlphaFineHelper.switchConfig4Locale(); |
|
|
|
|
RecoverManager.register(new RecoverForDesigner()); |
|
|
|
|
}, DesignerStartupPool.common()); |
|
|
|
|
|
|
|
|
|
CompletableFuture<Void> resourcePrepare = CompletableFuture.runAsync(() -> { |
|
|
|
|
pushUpdateTask.run(); |
|
|
|
|
if (WorkContext.getCurrent().isLocal()) { |
|
|
|
@ -229,10 +216,7 @@ public class DesignComponent {
|
|
|
|
|
UpmResourceLoader.INSTANCE.checkOldShopFile(); |
|
|
|
|
} |
|
|
|
|
}, DesignerStartupPool.common()); |
|
|
|
|
|
|
|
|
|
CompletableFuture |
|
|
|
|
.allOf(mainDesignerPrepare, extendDesignerPrepare, themeConfigPrepare, otherFeaturesPrepare, resourcePrepare) |
|
|
|
|
.join(); |
|
|
|
|
CompletableFuture.allOf(mainDesignerPrepare, extendDesignerPrepare, themeConfigPrepare, otherFeaturesPrepare, resourcePrepare).join(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -356,7 +340,7 @@ public class DesignComponent {
|
|
|
|
|
return new CellElementValueConverter(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
/** |
|
|
|
|
* 针对不同的对象,在读取Object对象的xml的时候需要使用不同的对象生成器 |
|
|
|
|
* @return 返回对象生成器 |
|
|
|
|
*/ |
|
|
|
@ -374,9 +358,9 @@ public class DesignComponent {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//wei:fs的模块中可能有需要设计器界面做设置的地方,在这边添加
|
|
|
|
|
private static void addAdapterForPlate() { |
|
|
|
|
|
|
|
|
|
private static void addAdapterForPlate() { |
|
|
|
|
//wei:fs的模块中可能有需要设计器界面做设置的地方,在这边添加
|
|
|
|
|
ProcessTransitionAdapter.setProcessTransitionAdapter(new ProcessTransitionAdapter() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|