@ -143,6 +143,12 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> {
* https 证书路径输入框
* /
private JPanel httpsCertFileInputPanel ;
/ * *
* 当前远程工作目录是否为新创建的
* /
private boolean newCreated ;
/ * *
* 主机名 , web应用 , Servlet , 端口监听器
* /
@ -327,7 +333,7 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> {
this . certPathInput . setText ( certPath ) ;
this . certSecretKeyInput . setText ( certSecretKey ) ;
this . rememberPwdCheckbox . setSelected ( rememberPwd ) ;
this . newCreated = ob . isNewCreated ( ) ;
} else {
this . remoteWorkspaceURL = RemoteWorkspaceURL . createDefaultURL ( ) ;
this . usernameInput . setText ( StringUtils . EMPTY ) ;
@ -335,6 +341,7 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> {
this . certPathInput . setText ( StringUtils . EMPTY ) ;
this . certSecretKeyInput . setText ( StringUtils . EMPTY ) ;
this . rememberPwdCheckbox . setSelected ( true ) ;
this . newCreated = true ;
}
fillRemoteEnvURLField ( ) ;
@ -366,7 +373,9 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> {
new String ( this . certSecretKeyInput . getPassword ( ) ) ,
rememberPwd ) ;
return RemoteDesignerWorkspaceInfo . create ( connection ) ;
RemoteDesignerWorkspaceInfo info = RemoteDesignerWorkspaceInfo . create ( connection ) ;
info . setNewCreated ( newCreated ) ;
return info ;
}
@Override
@ -567,9 +576,6 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> {
@Override
protected TestConnectionResult doInBackground ( ) throws Exception {
DesignerEnvManager . getEnvManager ( ) . setCertificatePath ( connection . getCertPath ( ) ) ;
DesignerEnvManager . getEnvManager ( ) . setCertificatePass ( connection . getCertSecretKey ( ) ) ;
try {
return TestConnectionResult . parse ( WorkContext . getConnector ( ) . testConnection ( connection ) , connection ) ;
} catch ( WorkspaceAuthException ignored ) {