public final class PreferencesHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addLocation(IScriptLocation entry)
Add a script storage location to the preferences.
|
static java.lang.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 java.util.Collection<IScriptLocation> |
getLocations()
Returns a collection of script locations as stored in the preferences.
|
static java.lang.String |
getScriptStorageLocation()
Get the default location to store recorded/imported scripts to.
|
static java.lang.String |
getUserScriptStorageLocation()
Get the storage location for recorded/imported scripts as set by the user.
|
static void |
removeLocation(java.lang.String locationURI)
Remove a script storage location from preferences.
|
public static java.lang.String getScriptStorageLocation()
public static java.lang.String getUserScriptStorageLocation()
null is returned.nullpublic static java.lang.String getDefaultScriptStorageLocation()
public static java.util.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(java.lang.String locationURI)
locationURI - location of storage