|
|
@ -12,6 +12,7 @@ import com.fr.design.actions.server.TemplateThemeManagerAction; |
|
|
|
import com.fr.design.actions.server.WidgetManagerAction; |
|
|
|
import com.fr.design.actions.server.WidgetManagerAction; |
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
import com.fr.design.carton.SwitchForSwingChecker; |
|
|
|
import com.fr.design.carton.SwitchForSwingChecker; |
|
|
|
|
|
|
|
import com.fr.design.constants.DesignerLaunchStatus; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.deeplink.DeepLinkManager; |
|
|
|
import com.fr.design.deeplink.DeepLinkManager; |
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
@ -58,6 +59,7 @@ import com.fr.event.EventDispatcher; |
|
|
|
import com.fr.event.Listener; |
|
|
|
import com.fr.event.Listener; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
import com.fr.log.SystemOutLoggerProvider; |
|
|
|
import com.fr.module.Module; |
|
|
|
import com.fr.module.Module; |
|
|
|
import com.fr.module.ModuleContext; |
|
|
|
import com.fr.module.ModuleContext; |
|
|
|
import com.fr.module.engine.event.LifecycleErrorEvent; |
|
|
|
import com.fr.module.engine.event.LifecycleErrorEvent; |
|
|
@ -117,11 +119,14 @@ public class MainDesigner extends BaseDesigner { |
|
|
|
* @param args 参数 |
|
|
|
* @param args 参数 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void main(String[] args) { |
|
|
|
public static void main(String[] args) { |
|
|
|
|
|
|
|
|
|
|
|
DesignerStartupContext.getRecorder().start(); |
|
|
|
DesignerStartupContext.getRecorder().start(); |
|
|
|
|
|
|
|
// 设置一下默认的logger,启动后再Reset
|
|
|
|
|
|
|
|
FineLoggerFactory.setLogger(SystemOutLoggerProvider.getInstance()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showSplash(); |
|
|
|
|
|
|
|
|
|
|
|
DesignerEnvManager.getEnvManager(); |
|
|
|
DesignerEnvManager.getEnvManager(); |
|
|
|
|
|
|
|
|
|
|
|
startPreload0(); |
|
|
|
startPreload0(); |
|
|
|
|
|
|
|
|
|
|
|
DesignerLifecycleMonitorContext.getMonitor().beforeStart(); |
|
|
|
DesignerLifecycleMonitorContext.getMonitor().beforeStart(); |
|
|
@ -129,7 +134,7 @@ public class MainDesigner extends BaseDesigner { |
|
|
|
FineRuntime.start(); |
|
|
|
FineRuntime.start(); |
|
|
|
//等 FineRuntime 启动后启动
|
|
|
|
//等 FineRuntime 启动后启动
|
|
|
|
DeepLinkManager.getInstance().start(args); |
|
|
|
DeepLinkManager.getInstance().start(args); |
|
|
|
|
|
|
|
|
|
|
|
startPreload1(); |
|
|
|
startPreload1(); |
|
|
|
|
|
|
|
|
|
|
|
DesignerSubListener.getInstance().start(); |
|
|
|
DesignerSubListener.getInstance().start(); |
|
|
@ -166,8 +171,7 @@ public class MainDesigner extends BaseDesigner { |
|
|
|
|
|
|
|
|
|
|
|
CompletableFuture<Void> initLookAndFeel = CompletableFuture.runAsync(DesignUtils::initLookAndFeel); |
|
|
|
CompletableFuture<Void> initLookAndFeel = CompletableFuture.runAsync(DesignUtils::initLookAndFeel); |
|
|
|
PreLoadService.getInstance().addUIFuture(initLookAndFeel); |
|
|
|
PreLoadService.getInstance().addUIFuture(initLookAndFeel); |
|
|
|
|
|
|
|
DesignerLaunchStatus.setStatusAndAsyncFire(DesignerLaunchStatus.UI_PRE_INIT_COMPLETE); |
|
|
|
showSplash(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|