org.eclipse.emf.ecp.internal.ui
Class PreferenceHelper

java.lang.Object
  extended by org.eclipse.emf.ecp.internal.ui.PreferenceHelper

public final class PreferenceHelper
extends Object

The preference helper aids storing {key, value} pairs.

Author:
pfeifferc

Method Summary
static String getPreference(String key, String defaultValue)
          Get a preference value for a specific key.
static void setPreference(String key, String value)
          Set the preference value for a specific key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPreference

public static String getPreference(String key,
                                   String defaultValue)
Get a preference value for a specific key.

Parameters:
key - the
defaultValue - the
Returns:
the value if it exists, otherwise the defaultValue

setPreference

public static void setPreference(String key,
                                 String value)
Set the preference value for a specific key. Key and value must not equal null.

Parameters:
key - the
value - the


Copyright © 2014. All Rights Reserved.