Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      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

Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2015. All Rights Reserved.