|
|
@ -6,6 +6,8 @@ import com.fr.design.constants.DesignerLaunchStatus; |
|
|
|
import com.fr.design.env.DesignerWorkspaceGenerator; |
|
|
|
import com.fr.design.env.DesignerWorkspaceGenerator; |
|
|
|
import com.fr.design.env.DesignerWorkspaceInfo; |
|
|
|
import com.fr.design.env.DesignerWorkspaceInfo; |
|
|
|
import com.fr.design.env.LocalDesignerWorkspaceInfo; |
|
|
|
import com.fr.design.env.LocalDesignerWorkspaceInfo; |
|
|
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
|
|
|
import com.fr.env.TestConnectionResult; |
|
|
|
import com.fr.event.Event; |
|
|
|
import com.fr.event.Event; |
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
import com.fr.event.Listener; |
|
|
|
import com.fr.event.Listener; |
|
|
@ -74,9 +76,13 @@ public class DesignerWorkspaceProvider extends Activator { |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Throwable e) { |
|
|
|
} catch (Throwable e) { |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
if (e.getCause() instanceof WorkspaceCheckException && workspaceInfo != null) { |
|
|
|
if (e.getCause() instanceof WorkspaceCheckException) { |
|
|
|
WorkspaceCheckException exception = (WorkspaceCheckException) e.getCause(); |
|
|
|
WorkspaceCheckException exception = (WorkspaceCheckException) e.getCause(); |
|
|
|
EnvChangeEntrance.getInstance().handleWorkspaceCheckException(exception, EnvChangeEntrance.PopTipStrategy.LATER, workspaceInfo.getConnection()); |
|
|
|
// 输出标准详情
|
|
|
|
|
|
|
|
TestConnectionResult result = TestConnectionResult.parseByException(exception); |
|
|
|
|
|
|
|
if (result.isVerifyResult()) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(result.getText().replaceAll(TestConnectionResult.WRAP, StringUtils.EMPTY) + Toolkit.i18nText("Fine-Design_Basic_Remote_Design_Modify_PassWord")); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
EnvChangeEntrance.getInstance().dealEvnExceptionWhenStartDesigner(); |
|
|
|
EnvChangeEntrance.getInstance().dealEvnExceptionWhenStartDesigner(); |
|
|
|
} |
|
|
|
} |
|
|
|