/* (non-Javadoc) * @see com.aptana.ide.core.ftp.IFTPConnectionFileManager#init(java.lang.String, int, org.eclipse.core.runtime.IPath, java.lang.String, char[], boolean, java.lang.String, java.lang.String, java.lang.String) */ public void init( String host, int port, IPath basePath, String login, char[] password, boolean passive, String transferType, String encoding, String timezone) { Assert.isTrue(ftpClient == null, Messages.FTPConnectionFileManager_already_initialized); try { this.pool = new FTPClientPool(this); ftpClient = createFTPClient(); this.host = host; this.port = port; this.login = login; this.password = (password == null) ? new char[0] : password; this.basePath = basePath != null ? basePath : Path.ROOT; this.authId = Policy.generateAuthId("FTP", login, host, port); // $NON-NLS-1$ this.transferType = transferType; this.timezone = timezone != null && timezone.length() == 0 ? null : timezone; initFTPClient(ftpClient, passive, encoding); } catch (Exception e) { IdeLog.logImportant( FTPPlugin.getDefault(), Messages.FTPConnectionFileManager_initialization_failed, e); ftpClient = null; } }