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