|
|
@ -395,8 +395,20 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> { |
|
|
|
* 设置 app 和 servlet 默认值 |
|
|
|
* 设置 app 和 servlet 默认值 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void setDefaultAppAndServlet() { |
|
|
|
private void setDefaultAppAndServlet() { |
|
|
|
webAppNameInput.setText(FRContext.getCommonOperator().getAppName()); |
|
|
|
String appName; |
|
|
|
servletNameInput.setText(ServerConfig.getInstance().getServletName()); |
|
|
|
String servletName; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
appName = FRContext.getCommonOperator().getAppName(); |
|
|
|
|
|
|
|
} catch (Exception ignored) { |
|
|
|
|
|
|
|
appName = RemoteWorkspaceURL.DEFAULT_WEB_APP_NAME; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
servletName = ServerConfig.getInstance().getServletName(); |
|
|
|
|
|
|
|
} catch (Exception ignored) { |
|
|
|
|
|
|
|
servletName = RemoteWorkspaceURL.DEFAULT_SERVLET_NAME; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
webAppNameInput.setText(appName); |
|
|
|
|
|
|
|
servletNameInput.setText(servletName); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|