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