|
|
@ -180,8 +180,9 @@ public class EnvChangeEntrance { |
|
|
|
private boolean doSwitch2Env(final String envName, PopTipStrategy strategy) { |
|
|
|
private boolean doSwitch2Env(final String envName, PopTipStrategy strategy) { |
|
|
|
|
|
|
|
|
|
|
|
DesignerWorkspaceInfo selectedEnv = getSelectedEnv(envName); |
|
|
|
DesignerWorkspaceInfo selectedEnv = getSelectedEnv(envName); |
|
|
|
EnvBackupHelper.getInstance().backup(); |
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
EnvBackupHelper.getInstance().backup(); |
|
|
|
Workspace workspace = DesignerWorkspaceGenerator.generate(selectedEnv); |
|
|
|
Workspace workspace = DesignerWorkspaceGenerator.generate(selectedEnv); |
|
|
|
if (notValid(workspace, selectedEnv)) { |
|
|
|
if (notValid(workspace, selectedEnv)) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|