|
|
|
@ -184,15 +184,17 @@ public class EnvChangeEntrance {
|
|
|
|
|
|
|
|
|
|
public void handleWorkspaceCheckException(WorkspaceCheckException e, PopTipStrategy strategy, WorkspaceConnectionInfo info) { |
|
|
|
|
TestConnectionResult result = TestConnectionResult.parseByException(e); |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
if (ComparatorUtils.equals(result, TestConnectionResult.AUTH_FAILED)) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
strategy.showTip(() -> FineJOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Switch_Workspace_Failed"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), |
|
|
|
|
ERROR_MESSAGE, |
|
|
|
|
UIManager.getIcon("OptionPane.errorIcon"))); |
|
|
|
|
} else { |
|
|
|
|
FineLoggerFactory.getLogger().error(result.getText().replaceAll(TestConnectionResult.WRAP, StringUtils.EMPTY) + Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Modify_PassWord")); |
|
|
|
|
if (result.isVerifyResult()) { |
|
|
|
|
FineLoggerFactory.getLogger().error(result.getText().replaceAll(TestConnectionResult.WRAP, StringUtils.EMPTY) + Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Modify_PassWord")); |
|
|
|
|
} |
|
|
|
|
strategy.showTip(() -> FineJOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), |
|
|
|
|
result.isVerifyResult() |
|
|
|
|
? new MessageWithLink(result.getText(), Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Modify_PassWord"), info.getUrl() + RemoteWorkspaceURL.SYSTEM_LOGIN_PATH) |
|
|
|
|