|
|
|
@ -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; |
|
|
|
@ -106,7 +109,8 @@ public class MainDesigner extends BaseDesigner {
|
|
|
|
|
* @param args 参数 |
|
|
|
|
*/ |
|
|
|
|
public static void main(String[] args) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showSplash(); |
|
|
|
|
DeepLinkManager.getInstance().start(args); |
|
|
|
|
StopWatch watch = new StopWatch(); |
|
|
|
|
watch.start(); |
|
|
|
@ -136,7 +140,18 @@ public class MainDesigner extends BaseDesigner {
|
|
|
|
|
FineLoggerFactory.getLogger().info("Designer started.Time used {} ms", watch.getTime()); |
|
|
|
|
watch.stop(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static void showSplash() { |
|
|
|
|
// 快快显示启动画面
|
|
|
|
|
UIUtil.invokeAndWaitIfNeeded(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
SplashContext.getInstance().registerSplash(createSplash()); |
|
|
|
|
SplashContext.getInstance().show(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 创建新建文件的快捷方式数组。 |
|
|
|
|
* |
|
|
|
@ -528,5 +543,22 @@ public class MainDesigner extends BaseDesigner {
|
|
|
|
|
DesignerInteractionHistory historyCollector = DesignerInteractionHistory.getInstance(); |
|
|
|
|
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(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|