Browse Source

REPORT-7059 数据连接无法保存的问题

master
rinoux 7 years ago
parent
commit
cee1fe749f
  1. 13
      designer/src/com/fr/design/mainframe/bbs/UserInfoPane.java
  2. 2
      designer_base/src/com/fr/design/file/TemplateTreePane.java

13
designer/src/com/fr/design/mainframe/bbs/UserInfoPane.java

@ -4,6 +4,7 @@
package com.fr.design.mainframe.bbs;
import com.fr.base.FRContext;
import com.fr.config.DBEnv;
import com.fr.config.ServerConfig;
import com.fr.design.DesignerEnvManager;
import com.fr.design.constants.UIConstants;
@ -78,11 +79,13 @@ public class UserInfoPane extends BasicPane{
GeneralContext.addEnvChangedListener(new EnvChangedListener() {
@Override
public void envChanged() {
String username = ServerConfig.getInstance().getBbsUsername();
if (StringUtils.isEmpty(username)){
markUnSignIn();
} else {
markSignIn(username);
if (DBEnv.isDBEnvAvailable()) {
String username = ServerConfig.getInstance().getBbsUsername();
if (StringUtils.isEmpty(username)){
markUnSignIn();
} else {
markSignIn(username);
}
}
}
});

2
designer_base/src/com/fr/design/file/TemplateTreePane.java

@ -320,7 +320,7 @@ public class TemplateTreePane extends JPanel implements FileOperations {
try {
fileUtils.moveToTrash(new File[]{new File(StableUtils.pathJoin(nodeFile.getEnvPath(), nodeFile.getPath()))});
//todo 走下这个流程,否则集群下其它节点无法同步删除
//FRContext.getCurrentEnv().deleteFile(nodeFile.getPath());
FRContext.getCurrentEnv().deleteFile(nodeFile.getPath());
} catch (IOException e) {
FRLogger.getLogger().info(e.getMessage());
FRContext.getCurrentEnv().deleteFile(nodeFile.getPath());

Loading…
Cancel
Save