Browse Source

REPORT-5097 9.0,切换到本地其他目录,点击帮助-产品演示,不需要切换目录的提示

暂时先不改
master
MoMeak 7 years ago
parent
commit
54b470d6e8
  1. 21
      designer_base/src/com/fr/start/StartServer.java

21
designer_base/src/com/fr/start/StartServer.java

@ -58,7 +58,26 @@ public class StartServer {
+ "?op=fs"); + "?op=fs");
return; return;
} }
initDemoServerAndBrowser(); DesignerEnvManager envManager = DesignerEnvManager.getEnvManager();
if (!envManager.isCurrentEnvDefault()) {
InformationPane inf = new InformationPane(envManager.getDefaultEnvName());
inf.showSmallWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() {
@Override
public void doOk() {
try {
SignIn.signIn(DesignerEnvManager.getEnvManager().getDefaultEnv());
TemplateTreePane.getInstance().refreshDockingView();
TableDataTreePane.getInstance(DesignModelAdapter.getCurrentModelAdapter());
} catch (Exception e) {
FRContext.getLogger().errorWithServerLevel(e.getMessage());
}
initDemoServerAndBrowser();
}
}).setVisible(true);
} else {
initDemoServerAndBrowser();
}
} }
private static void initDemoServerAndBrowser() { private static void initDemoServerAndBrowser() {

Loading…
Cancel
Save