|
|
|
@ -3,6 +3,7 @@ package com.fr.start.module;
|
|
|
|
|
import com.fr.base.BaseFormula; |
|
|
|
|
import com.fr.base.Formula; |
|
|
|
|
import com.fr.base.MultiFieldParameter; |
|
|
|
|
import com.fr.base.OptimizeUtil; |
|
|
|
|
import com.fr.base.passport.FinePassportListenerAdapter; |
|
|
|
|
import com.fr.base.passport.FinePassportManager; |
|
|
|
|
import com.fr.base.process.ProcessOperator; |
|
|
|
@ -80,7 +81,10 @@ import com.fr.design.share.ui.generate.ShareGeneratePane;
|
|
|
|
|
import com.fr.design.update.actions.RecoverForDesigner; |
|
|
|
|
import com.fr.design.update.push.DesignerPushUpdateManager; |
|
|
|
|
import com.fr.design.widget.ui.btn.FormSubmitButtonDetailPane; |
|
|
|
|
import com.fr.event.Event; |
|
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
|
import com.fr.event.Listener; |
|
|
|
|
import com.fr.event.Null; |
|
|
|
|
import com.fr.general.GeneralContext; |
|
|
|
|
import com.fr.general.xml.GeneralXMLTools; |
|
|
|
|
import com.fr.js.EmailJavaScript; |
|
|
|
@ -159,6 +163,8 @@ public class DesignerActivator extends Activator implements Prepare {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void start() { |
|
|
|
|
|
|
|
|
|
startLoginAuthServer(); |
|
|
|
|
migrateBBSInfoFromFineDB(); |
|
|
|
|
FormThemeConfigMigrator.getInstance().upgrade(); |
|
|
|
|
ReportThemeConfigMigrator.getInstance().upgrade(); |
|
|
|
@ -488,7 +494,22 @@ public class DesignerActivator extends Activator implements Prepare {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void prepare() { |
|
|
|
|
LoginAuthServer.getInstance().start(); |
|
|
|
|
|
|
|
|
|
ContentReplacerCenter.getInstance().register(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void startLoginAuthServer() { |
|
|
|
|
|
|
|
|
|
OptimizeUtil.execute(() -> { |
|
|
|
|
// 设计器启动后启动
|
|
|
|
|
EventDispatcher.listen(DesignerLaunchStatus.STARTUP_COMPLETE, new Listener<Null>() { |
|
|
|
|
@Override |
|
|
|
|
public void on(Event event, Null param) { |
|
|
|
|
LoginAuthServer.getInstance().start(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, () -> { |
|
|
|
|
LoginAuthServer.getInstance().compatibleStart(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|