|
|
|
@ -19,6 +19,7 @@ import com.fr.design.i18n.Toolkit;
|
|
|
|
|
import com.fr.design.locale.impl.ProductImproveMark; |
|
|
|
|
import com.fr.design.login.DesignerLoginType; |
|
|
|
|
import com.fr.design.login.config.DesignerLoginConfigManager; |
|
|
|
|
import com.fr.design.mainframe.ComponentReuseNotifyUtil; |
|
|
|
|
import com.fr.design.mainframe.reuse.ComponentReuseNotificationInfo; |
|
|
|
|
import com.fr.design.mainframe.vcs.VcsConfigManager; |
|
|
|
|
import com.fr.design.notification.SnapChatConfig; |
|
|
|
@ -415,6 +416,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
private void compatibilityPrevVersion(File prevEnvFile) { |
|
|
|
|
try { |
|
|
|
|
XMLTools.readFileXML(designerEnvManager, prevEnvFile); |
|
|
|
|
clearOldVersionDesignerEnvProperties(); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} |
|
|
|
@ -424,6 +426,11 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
designerEnvManager.saveXMLFile(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void clearOldVersionDesignerEnvProperties() { |
|
|
|
|
SnapChatConfig snapChatConfig = designerEnvManager.getSnapChatConfig(); |
|
|
|
|
snapChatConfig.resetRead(ComponentReuseNotifyUtil.COMPONENT_SNAP_CHAT_KEY); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void setEnvFile(File envFile) { |
|
|
|
|
DesignerEnvManager.envFile = envFile; |
|
|
|
|
} |
|
|
|
@ -2332,4 +2339,8 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
DesignerExiter.getInstance().execute(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public SnapChatConfig getSnapChatConfig() { |
|
|
|
|
return snapChatConfig; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|