Package com.android.ide.eclipse.adt.internal.preferences

Examples of com.android.ide.eclipse.adt.internal.preferences.AdtPrefs


  @Override
  public void setOption(String name, String value)
    throws Exception
  {
    AdtPrefs prefs = AdtPrefs.getPrefs();
    if (AdtPrefs.PREFS_SDK_DIR.equals(name)){
      prefs.setSdkLocation(new File(value));
    }

    // force adt prefs to reload.
    // When setting the sdk dir, File.getPath doesn't include the trailing slash
    // and AdtPrefs.setSdkLocation will not add it if necessary. Apparently the
    // gui relies on a property change event to handle that, so we'll mimic that
    // by calling loadValue here to handle that edge case and any others handled
    // in loadValues.
    prefs.loadValues(null);
  }
View Full Code Here

TOP

Related Classes of com.android.ide.eclipse.adt.internal.preferences.AdtPrefs

Copyright © 2018 www.massapicom. 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.