|
|
|
@ -96,9 +96,10 @@ public class EnvChangeEntrance {
|
|
|
|
|
* @param envName 目标工作目录名称 |
|
|
|
|
*/ |
|
|
|
|
public void switch2Env(final String envName) { |
|
|
|
|
switch2Env(envName, PopTipStrategy.LATER); |
|
|
|
|
if (switch2Env(envName, PopTipStrategy.LATER)) { |
|
|
|
|
VersionCheckUtils.showVersionCheckDialog(envName); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 切换到新环境 |
|
|
|
@ -445,9 +446,12 @@ public class EnvChangeEntrance {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void doOk() { |
|
|
|
|
envListOkAction(envListPane, PopTipStrategy.LATER); |
|
|
|
|
boolean changeResult = envListOkAction(envListPane, PopTipStrategy.LATER); |
|
|
|
|
// 切换完成后清理密码
|
|
|
|
|
updateNotRememberPwdEnv(); |
|
|
|
|
if (changeResult) { |
|
|
|
|
VersionCheckUtils.showVersionCheckDialog(envListPane.updateEnvManager()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -479,6 +483,7 @@ public class EnvChangeEntrance {
|
|
|
|
|
DesignerExiter.getInstance().execute(); |
|
|
|
|
} else { |
|
|
|
|
updateNotRememberPwdEnv(); |
|
|
|
|
VersionCheckUtils.showVersionCheckDialog(envListPane.updateEnvManager()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|