1 11 package org.eclipse.core.runtime.preferences; 12 13 import java.io.InputStream ; 14 import java.io.OutputStream ; 15 import org.eclipse.core.runtime.CoreException; 16 import org.eclipse.core.runtime.IStatus; 17 import org.osgi.service.prefs.Preferences; 18 19 32 public interface IPreferencesService { 33 34 49 public String get(String key, String defaultValue, Preferences[] nodes); 50 51 99 public boolean getBoolean(String qualifier, String key, boolean defaultValue, IScopeContext[] contexts); 100 101 149 public byte[] getByteArray(String qualifier, String key, byte[] defaultValue, IScopeContext[] contexts); 150 151 199 public double getDouble(String qualifier, String key, double defaultValue, IScopeContext[] contexts); 200 201 249 public float getFloat(String qualifier, String key, float defaultValue, IScopeContext[] contexts); 250 251 299 public int getInt(String qualifier, String key, int defaultValue, IScopeContext[] contexts); 300 301 349 public long getLong(String qualifier, String key, long defaultValue, IScopeContext[] contexts); 350 351 399 public String getString(String qualifier, String key, String defaultValue, IScopeContext[] contexts); 400 401 406 public IEclipsePreferences getRootNode(); 407 408 437 public IStatus exportPreferences(IEclipsePreferences node, OutputStream output, String [] excludesList) throws CoreException; 438 439 457 public IStatus importPreferences(InputStream input) throws CoreException; 458 459 477 public IStatus applyPreferences(IExportedPreferences preferences) throws CoreException; 478 479 495 public IExportedPreferences readPreferences(InputStream input) throws CoreException; 496 497 513 public String [] getDefaultLookupOrder(String qualifier, String key); 514 515 531 public String [] getLookupOrder(String qualifier, String key); 532 533 554 public void setDefaultLookupOrder(String qualifier, String key, String [] order); 555 556 579 public void exportPreferences(IEclipsePreferences node, IPreferenceFilter[] filters, OutputStream output) throws CoreException; 580 581 593 public IPreferenceFilter[] matches(IEclipsePreferences node, IPreferenceFilter[] filters) throws CoreException; 594 595 617 public void applyPreferences(IEclipsePreferences node, IPreferenceFilter[] filters) throws CoreException; 618 } 619 | Popular Tags |