@ -168,27 +168,27 @@ public class DesignerActivator extends Activator implements Prepare {
DesignerMessageHelper . getInstance ( ) . prepareShowMessage ( ) ;
DesignerMessageHelper . getInstance ( ) . prepareShowMessage ( ) ;
}
}
} ) ;
} ) ;
private boolean hasUpdated = false ;
private boolean hasUpdated = false ;
@Override
@Override
public void start ( ) {
public void start ( ) {
List < LocaleMarker > markers = findMutable ( InterMutableKey . Path ) ;
List < LocaleMarker > markers = findMutable ( InterMutableKey . Path ) ;
for ( LocaleMarker marker : markers ) {
for ( LocaleMarker marker : markers ) {
if ( marker . match ( LocaleScope . DESIGN ) ) {
if ( marker . match ( LocaleScope . DESIGN ) ) {
DesignI18nImpl . getInstance ( ) . addResource ( marker . getPath ( ) ) ;
DesignI18nImpl . getInstance ( ) . addResource ( marker . getPath ( ) ) ;
}
}
}
}
CompletableFuture < Void > themeConfigPrepare = CompletableFuture . runAsync ( ( ) - > {
CompletableFuture < Void > themeConfigPrepare = CompletableFuture . runAsync ( ( ) - > {
FormThemeConfigMigrator . getInstance ( ) . upgrade ( ) ;
FormThemeConfigMigrator . getInstance ( ) . upgrade ( ) ;
ReportThemeConfigMigrator . getInstance ( ) . upgrade ( ) ;
ReportThemeConfigMigrator . getInstance ( ) . upgrade ( ) ;
} , DesignerStartupPool . common ( ) ) ;
} , DesignerStartupPool . common ( ) ) ;
CompletableFuture < Void > mainDesignerPrepare = CompletableFuture . runAsync ( this : : designerModuleStart , DesignerStartupPool . common ( ) ) ;
CompletableFuture < Void > mainDesignerPrepare = CompletableFuture . runAsync ( this : : designerModuleStart , DesignerStartupPool . common ( ) ) ;
CompletableFuture < Void > otherFeaturesPrepare = CompletableFuture . runAsync ( ( ) - > {
CompletableFuture < Void > otherFeaturesPrepare = CompletableFuture . runAsync ( ( ) - > {
startBBSLoginAuthServer ( ) ;
startBBSLoginAuthServer ( ) ;
migrateBBSInfoFromFineDB ( ) ;
migrateBBSInfoFromFineDB ( ) ;
@ -205,13 +205,13 @@ public class DesignerActivator extends Activator implements Prepare {
AlphaFineHelper . switchConfig4Locale ( ) ;
AlphaFineHelper . switchConfig4Locale ( ) ;
RecoverManager . register ( new RecoverForDesigner ( ) ) ;
RecoverManager . register ( new RecoverForDesigner ( ) ) ;
} ) ;
} ) ;
CompletableFuture < Void > resourcePrepare = CompletableFuture . runAsync ( ( ) - > {
CompletableFuture < Void > resourcePrepare = CompletableFuture . runAsync ( ( ) - > {
pushUpdateTask . run ( ) ;
pushUpdateTask . run ( ) ;
PluginResourceLoader . INSTANCE . checkOldShopFile ( ) ;
PluginResourceLoader . INSTANCE . checkOldShopFile ( ) ;
UpmResourceLoader . INSTANCE . checkOldShopFile ( ) ;
UpmResourceLoader . INSTANCE . checkOldShopFile ( ) ;
} , DesignerStartupPool . common ( ) ) ;
} , DesignerStartupPool . common ( ) ) ;
CompletableFuture
CompletableFuture
. allOf ( mainDesignerPrepare , themeConfigPrepare , otherFeaturesPrepare , resourcePrepare )
. allOf ( mainDesignerPrepare , themeConfigPrepare , otherFeaturesPrepare , resourcePrepare )
. join ( ) ;
. join ( ) ;
@ -219,9 +219,9 @@ public class DesignerActivator extends Activator implements Prepare {
@Override
@Override
public void afterAllStart ( ) {
public void afterAllStart ( ) {
DesignerStartupExecutor . getInstance ( ) . execute ( ( ) - > DesignerLaunchStatus . setStatus ( DesignerLaunchStatus . DESIGNER_INIT_COMPLETE ) ) ;
DesignerStartupExecutor . getInstance ( ) . execute ( ( ) - > DesignerLaunchStatus . setStatus ( DesignerLaunchStatus . DESIGNER_INIT_COMPLETE ) ) ;
//生成BasicChartQuickEditor对象,需要用到ChartDesignerActivator的注册信息(DesignModuleFactory.registerChartPropertyPaneClass(ChartPropertyPane.class);)
//生成BasicChartQuickEditor对象,需要用到ChartDesignerActivator的注册信息(DesignModuleFactory.registerChartPropertyPaneClass(ChartPropertyPane.class);)
//所以不能在registerCellEditor函数中进行注册
//所以不能在registerCellEditor函数中进行注册
ActionFactory . registerCellEditor ( ChartCollection . class , new BasicChartQuickEditor ( ) ) ;
ActionFactory . registerCellEditor ( ChartCollection . class , new BasicChartQuickEditor ( ) ) ;
@ -521,7 +521,6 @@ public class DesignerActivator extends Activator implements Prepare {
@Override
@Override
public void prepare ( ) {
public void prepare ( ) {
if ( ! OptimizeUtil . isOpen ( ) ) {
if ( ! OptimizeUtil . isOpen ( ) ) {
LoginAuthServer . getInstance ( ) . compatibleStart ( ) ;
LoginAuthServer . getInstance ( ) . compatibleStart ( ) ;
}
}