/* (non-Javadoc) * @see com.aptana.ide.core.io.ConnectionPoint#saveState(com.aptana.ide.core.io.epl.IMemento) */ @Override protected void saveState(IMemento memento) { super.saveState(memento); memento.createChild(ELEMENT_HOST).putTextData(host); if (IFTPSConstants.FTP_PORT_DEFAULT != port) { memento.createChild(ELEMENT_PORT).putTextData(Integer.toString(port)); } if (!Path.ROOT.equals(path)) { memento.createChild(ELEMENT_PATH).putTextData(path.toPortableString()); } if (login.length() != 0) { memento.createChild(ELEMENT_LOGIN).putTextData(login); } memento.createChild(ELEMENT_EXPLICIT).putTextData(Boolean.toString(explicit)); memento .createChild(ELEMENT_VALIDATE_CERTIFICATE) .putTextData(Boolean.toString(validateCertificate)); if (noSSLSessionResumption) { memento .createChild(ELEMENT_NO_SSL_SESSION_RESUMPTION) .putTextData(Boolean.toString(noSSLSessionResumption)); } memento.createChild(ELEMENT_PASSIVE).putTextData(Boolean.toString(passiveMode)); if (!IFTPSConstants.TRANSFER_TYPE_AUTO.equals(transferType)) { memento.createChild(ELEMENT_TRANSFER_TYPE).putTextData(transferType); } if (!IFTPSConstants.ENCODING_DEFAULT.equals(encoding)) { memento.createChild(ELEMENT_ENCODING).putTextData(encoding); } if (timezone != null && timezone.length() != 0) { memento.createChild(ELEMENT_TIMEZONE).putTextData(timezone); } }
/* * (non-Javadoc) * @see com.aptana.ide.core.io.ConnectionPoint#saveState(com.aptana.ide.core.io.epl.IMemento) */ @Override protected void saveState(IMemento memento) { super.saveState(memento); memento.createChild(ELEMENT_HOST).putTextData(host); if (IFTPConstants.FTP_PORT_DEFAULT != port) { memento.createChild(ELEMENT_PORT).putTextData(Integer.toString(port)); } if (!Path.ROOT.equals(path)) { memento.createChild(ELEMENT_PATH).putTextData(path.toPortableString()); } if (login.length() != 0) { memento.createChild(ELEMENT_LOGIN).putTextData(login); } memento.createChild(ELEMENT_PASSIVE).putTextData(Boolean.toString(passiveMode)); if (!IFTPConstants.TRANSFER_TYPE_AUTO.equals(transferType)) { memento.createChild(ELEMENT_TRANSFER_TYPE).putTextData(transferType); } if (!IFTPConstants.ENCODING_DEFAULT.equals(encoding)) { memento.createChild(ELEMENT_ENCODING).putTextData(encoding); } if (timezone != null && timezone.length() != 0) { memento.createChild(ELEMENT_TIMEZONE).putTextData(timezone); } }