|
|
@ -2,6 +2,7 @@ package com.fr.start; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.ConfigManager; |
|
|
|
import com.fr.base.ConfigManager; |
|
|
|
import com.fr.base.FRContext; |
|
|
|
import com.fr.base.FRContext; |
|
|
|
|
|
|
|
import com.fr.dav.LocalEnv; |
|
|
|
import com.fr.design.DesignModelAdapter; |
|
|
|
import com.fr.design.DesignModelAdapter; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.data.datapane.TableDataTreePane; |
|
|
|
import com.fr.design.data.datapane.TableDataTreePane; |
|
|
@ -58,26 +59,7 @@ public class StartServer { |
|
|
|
+ "?op=fs"); |
|
|
|
+ "?op=fs"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
DesignerEnvManager envManager = DesignerEnvManager.getEnvManager(); |
|
|
|
initDemoServerAndBrowser(); |
|
|
|
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() { |
|
|
|