public final class PreferencesHelper extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addLocation(IScriptLocation entry)
Add a script storage location to the preferences.
|
static String |
getDefaultScriptStorageLocation()
Get the default location to store recorded/imported scripts to.
|
static IScriptLocation |
getLocationForNode(org.osgi.service.prefs.Preferences node)
Create a location for a given preferences node.
|
static Collection<IScriptLocation> |
getLocations()
Returns a collection of script locations as stored in the preferences.
|
static String |
getScriptStorageLocation()
Get the default location to store recorded/imported scripts to.
|
static String |
getUserScriptStorageLocation()
Get the storage location for recorded/imported scripts as set by the user.
|
static void |
removeLocation(String locationURI)
Remove a script storage location from preferences.
|
public static String getScriptStorageLocation()
public static String getUserScriptStorageLocation()
null
is returned.null
public static String getDefaultScriptStorageLocation()
public static Collection<IScriptLocation> getLocations()
IEntry
elements.public static IScriptLocation getLocationForNode(org.osgi.service.prefs.Preferences node)
node
- preferences node to readpublic static void addLocation(IScriptLocation entry)
entry
- location to addpublic static void removeLocation(String locationURI)
locationURI
- location of storage