|
|
|
@ -16,6 +16,7 @@ import com.fr.design.file.HistoryTemplateListCache;
|
|
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
|
import com.fr.design.file.MutilTempalteTabPane; |
|
|
|
|
import com.fr.design.fun.MenuHandler; |
|
|
|
|
import com.fr.design.fun.OemProcessor; |
|
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
|
import com.fr.design.gui.ibutton.UIPreviewButton; |
|
|
|
|
import com.fr.design.gui.ibutton.UISaveForbiddenButton; |
|
|
|
@ -42,6 +43,7 @@ import com.fr.design.module.DesignModuleFactory;
|
|
|
|
|
import com.fr.design.monitor.DesignerLifecycleMonitorContext; |
|
|
|
|
import com.fr.design.notification.ui.NotificationCenterPane; |
|
|
|
|
import com.fr.design.share.SharableManager; |
|
|
|
|
import com.fr.design.ui.util.UIUtil; |
|
|
|
|
import com.fr.design.utils.concurrent.ThreadFactoryBuilder; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.env.utils.DesignerInteractionHistory; |
|
|
|
@ -59,6 +61,7 @@ import com.fr.stable.StableUtils;
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.stable.lifecycle.FineLifecycleFatalError; |
|
|
|
|
import com.fr.stable.xml.XMLTools; |
|
|
|
|
import com.fr.start.common.SplashCommon; |
|
|
|
|
import com.fr.start.module.StartupArgs; |
|
|
|
|
import com.fr.start.server.ServerTray; |
|
|
|
|
import com.fr.third.org.apache.commons.lang3.time.StopWatch; |
|
|
|
@ -107,6 +110,7 @@ public class MainDesigner extends BaseDesigner {
|
|
|
|
|
*/ |
|
|
|
|
public static void main(String[] args) { |
|
|
|
|
|
|
|
|
|
showSplash(); |
|
|
|
|
DeepLinkManager.getInstance().start(args); |
|
|
|
|
StopWatch watch = new StopWatch(); |
|
|
|
|
watch.start(); |
|
|
|
@ -137,6 +141,17 @@ public class MainDesigner extends BaseDesigner {
|
|
|
|
|
watch.stop(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static void showSplash() { |
|
|
|
|
// 快快显示启动画面
|
|
|
|
|
UIUtil.invokeAndWaitIfNeeded(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
SplashContext.getInstance().registerSplash(createSplash()); |
|
|
|
|
SplashContext.getInstance().show(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 创建新建文件的快捷方式数组。 |
|
|
|
|
* |
|
|
|
@ -529,4 +544,21 @@ public class MainDesigner extends BaseDesigner {
|
|
|
|
|
historyCollector.saveXMLFile(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static SplashStrategy createSplash() { |
|
|
|
|
|
|
|
|
|
OemProcessor oemProcessor = OemHandler.findOem(); |
|
|
|
|
if (oemProcessor != null) { |
|
|
|
|
SplashStrategy splashStrategy = null; |
|
|
|
|
try { |
|
|
|
|
splashStrategy = oemProcessor.createSplashStrategy(); |
|
|
|
|
} catch (Throwable e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} |
|
|
|
|
if (splashStrategy != null) { |
|
|
|
|
return splashStrategy; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return new SplashCommon(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|