Browse Source

REPORT-11257

final/10.0
Mata.Li 6 years ago
parent
commit
b376e9dc1b
  1. 5
      designer-base/src/main/java/com/fr/design/actions/file/SwitchExistEnv.java
  2. 3
      designer-base/src/main/java/com/fr/start/server/ServerTray.java

5
designer-base/src/main/java/com/fr/design/actions/file/SwitchExistEnv.java

@ -15,6 +15,7 @@ import com.fr.design.menu.SeparatorDef;
import com.fr.design.utils.DesignUtils;
import com.fr.license.exception.RegistEditionException;
import com.fr.log.FineLoggerFactory;
import com.fr.start.server.ServerTray;
import com.fr.workspace.WorkContext;
import com.fr.workspace.WorkContextCallback;
import com.fr.workspace.Workspace;
@ -110,6 +111,10 @@ public class SwitchExistEnv extends MenuDef {
DesignUtils.refreshDesignerFrame();
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().refreshToolArea();
fireDSChanged();
if (WorkContext.getCurrent().isLocal()) {
//初始化一下serverTray
ServerTray.init();
}
}
});
} catch (AuthException exception) {

3
designer-base/src/main/java/com/fr/start/server/ServerTray.java

@ -173,8 +173,7 @@ public class ServerTray {
}
public static void init() {
if (INSTANCE == null)
INSTANCE = new ServerTray();
}
}
Loading…
Cancel
Save