Beispiel #1
0
 /* (non-Javadoc)
  * @see com.aptana.ide.core.io.ConnectionPoint#loadState(com.aptana.ide.core.io.epl.IMemento)
  */
 @Override
 protected void loadState(IMemento memento) {
   super.loadState(memento);
   IMemento child = memento.getChild(ELEMENT_HOST);
   if (child != null) {
     host = child.getTextData();
   }
   child = memento.getChild(ELEMENT_PORT);
   if (child != null) {
     try {
       port = Integer.parseInt(child.getTextData());
     } catch (NumberFormatException e) {
     }
   }
   child = memento.getChild(ELEMENT_PATH);
   if (child != null) {
     String text = child.getTextData();
     if (text != null) {
       path = Path.fromPortableString(text);
     }
   }
   child = memento.getChild(ELEMENT_LOGIN);
   if (child != null) {
     login = child.getTextData();
   }
   child = memento.getChild(ELEMENT_EXPLICIT);
   if (child != null) {
     explicit = Boolean.parseBoolean(child.getTextData());
   }
   child = memento.getChild(ELEMENT_VALIDATE_CERTIFICATE);
   if (child != null) {
     validateCertificate = Boolean.parseBoolean(child.getTextData());
   }
   child = memento.getChild(ELEMENT_NO_SSL_SESSION_RESUMPTION);
   if (child != null) {
     noSSLSessionResumption = Boolean.parseBoolean(child.getTextData());
   }
   child = memento.getChild(ELEMENT_PASSIVE);
   if (child != null) {
     passiveMode = Boolean.parseBoolean(child.getTextData());
   }
   child = memento.getChild(ELEMENT_TRANSFER_TYPE);
   if (child != null) {
     transferType = child.getTextData();
   }
   child = memento.getChild(ELEMENT_ENCODING);
   if (child != null) {
     encoding = child.getTextData();
   }
   child = memento.getChild(ELEMENT_TIMEZONE);
   if (child != null) {
     timezone = child.getTextData();
   }
 }
 /*
  * (non-Javadoc)
  * @see com.aptana.ide.core.io.ConnectionPoint#loadState(com.aptana.ide.core.io.epl.IMemento)
  */
 @Override
 protected void loadState(IMemento memento) {
   super.loadState(memento);
   IMemento child = memento.getChild(ELEMENT_HOST);
   if (child != null) {
     host = child.getTextData();
   }
   child = memento.getChild(ELEMENT_PORT);
   if (child != null) {
     try {
       port = Integer.parseInt(child.getTextData());
     } catch (NumberFormatException e) {
     }
   }
   child = memento.getChild(ELEMENT_PATH);
   if (child != null) {
     String text = child.getTextData();
     if (text != null) {
       path = Path.fromPortableString(text);
     }
   }
   child = memento.getChild(ELEMENT_LOGIN);
   if (child != null) {
     login = child.getTextData();
   }
   child = memento.getChild(ELEMENT_PASSIVE);
   if (child != null) {
     passiveMode = Boolean.parseBoolean(child.getTextData());
   }
   child = memento.getChild(ELEMENT_TRANSFER_TYPE);
   if (child != null) {
     transferType = child.getTextData();
   }
   child = memento.getChild(ELEMENT_ENCODING);
   if (child != null) {
     encoding = child.getTextData();
   }
   child = memento.getChild(ELEMENT_TIMEZONE);
   if (child != null) {
     timezone = child.getTextData();
   }
 }