Package com.antimatterstudios.esftp.properties

Source Code of com.antimatterstudios.esftp.properties.DefaultPreferences

package com.antimatterstudios.esftp.properties;

import org.eclipse.core.runtime.preferences.DefaultScope;

import com.antimatterstudios.esftp.Activator;

public class DefaultPreferences extends EsftpPreferences
{
  protected void setupScope()
  {
    m_original = new DefaultScope().getNode(Activator.PLUGIN_ID);
  }
 
  protected void setupWorkingCopy()
  {
    setupScope();
    m_preferences = m_original;
 
 
  public DefaultPreferences()
  {
    setupWorkingCopy();
   
    putString(IProperty.SERVER, "<Enter server address>");
    putInt(IProperty.PORT,22);
    putInt(IProperty.PROTOCOL,0);
    putInt(IProperty.TIMEOUT, 30);
    putString(IProperty.USERNAME,"<Enter Username>");
    putString(IProperty.PASSWORD,"");
    putBoolean(IProperty.SAVEPWD,true);
    putBoolean(IProperty.RECURSE,true);
    putBoolean(IProperty.EMPTY,true);
    putString(IProperty.SITEROOT,"<Enter Site Root>");
   
    debug();
  }
}
TOP

Related Classes of com.antimatterstudios.esftp.properties.DefaultPreferences

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.