|
|
@ -568,11 +568,13 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta |
|
|
|
JTemplate<?, ?> editingTemplate = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
JTemplate<?, ?> editingTemplate = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
StringBuilder defaultTitleSB = new StringBuilder(); |
|
|
|
StringBuilder defaultTitleSB = new StringBuilder(); |
|
|
|
defaultTitleSB.append(ProductConstants.PRODUCT_NAME); |
|
|
|
defaultTitleSB.append(ProductConstants.PRODUCT_NAME); |
|
|
|
|
|
|
|
defaultTitleSB.append(" "); |
|
|
|
|
|
|
|
defaultTitleSB.append(ProductConstants.BRANCH); |
|
|
|
// james:标识登录的用户和登录的ENV
|
|
|
|
// james:标识登录的用户和登录的ENV
|
|
|
|
String envName = DesignerEnvManager.getEnvManager().getCurEnvName(); |
|
|
|
String envName = DesignerEnvManager.getEnvManager().getCurEnvName(); |
|
|
|
Env env = DesignerEnvManager.getEnvManager().getEnv(envName); |
|
|
|
Env env = DesignerEnvManager.getEnvManager().getEnv(envName); |
|
|
|
if (env != null) { |
|
|
|
if (env != null) { |
|
|
|
defaultTitleSB.append('-').append(env.getUser()).append('@').append(envName).append('['); |
|
|
|
defaultTitleSB.append(env.getUser()).append('@').append(envName).append('['); |
|
|
|
defaultTitleSB.append(env.getEnvDescription()); |
|
|
|
defaultTitleSB.append(env.getEnvDescription()); |
|
|
|
defaultTitleSB.append(']'); |
|
|
|
defaultTitleSB.append(']'); |
|
|
|
if (editingTemplate != null) { |
|
|
|
if (editingTemplate != null) { |
|
|
|