|
|
@ -482,20 +482,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter { |
|
|
|
public void setLastEastRegionContainerWidth(int eastRegionContainerWidth) { |
|
|
|
public void setLastEastRegionContainerWidth(int eastRegionContainerWidth) { |
|
|
|
this.eastRegionContainerWidth = eastRegionContainerWidth; |
|
|
|
this.eastRegionContainerWidth = eastRegionContainerWidth; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 判断当前环境是否为默认 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @return 是默认则返回true |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public boolean isCurrentEnvDefault() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DesignerWorkspaceInfo current = this.getWorkspaceInfo(curEnvName); |
|
|
|
|
|
|
|
String defaultEnvPath = getDefaultenvPath(StableUtils.getInstallHome()); |
|
|
|
|
|
|
|
return ComparatorUtils.equals(defaultEnvPath, current.getPath()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 返回默认环境 |
|
|
|
* 返回默认环境 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -547,9 +534,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter { |
|
|
|
* 设置当前环境为默认 |
|
|
|
* 设置当前环境为默认 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void setCurrentEnv2Default() { |
|
|
|
public void setCurrentEnv2Default() { |
|
|
|
if (isCurrentEnvDefault()) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
final String envName = getDefaultEnvName(); |
|
|
|
final String envName = getDefaultEnvName(); |
|
|
|
WorkContext.switchTo(DesignerWorkspaceGenerator.generate(getDefaultConfig()), new WorkContextCallback() { |
|
|
|
WorkContext.switchTo(DesignerWorkspaceGenerator.generate(getDefaultConfig()), new WorkContextCallback() { |
|
|
|