org.eclipse.core.runtime.adaptor
Class LocationManager

java.lang.Object
  extended by org.eclipse.core.runtime.adaptor.LocationManager

public class LocationManager
extends java.lang.Object

This class is used to manage the various Locations for Eclipse.

Clients may not extend this class.

Since:
3.1

Field Summary
static java.lang.String BUNDLE_DATA_FILE
           
static java.lang.String BUNDLES_DIR
           
static java.lang.String CONFIG_FILE
           
static java.lang.String ECLIPSE_PROPERTIES
           
static java.lang.String LAZY_FILE
           
static java.lang.String MANIFESTS_DIR
           
static java.lang.String PROP_CONFIG_AREA
           
static java.lang.String PROP_CONFIG_AREA_DEFAULT
           
static java.lang.String PROP_INSTALL_AREA
           
static java.lang.String PROP_INSTANCE_AREA
           
static java.lang.String PROP_INSTANCE_AREA_DEFAULT
           
static java.lang.String PROP_MANIFEST_CACHE
           
static java.lang.String PROP_SHARED_CONFIG_AREA
           
static java.lang.String PROP_USER_AREA
           
static java.lang.String PROP_USER_AREA_DEFAULT
           
static java.lang.String PROP_USER_DIR
           
static java.lang.String PROP_USER_HOME
           
static java.lang.String READ_ONLY_AREA_SUFFIX
           
static java.lang.String STATE_FILE
           
 
Constructor Summary
LocationManager()
           
 
Method Summary
static java.net.URL buildURL(java.lang.String spec, boolean trailingSlash)
          Builds a URL with the given specification
static java.io.File getConfigurationFile(java.lang.String filename)
          Returns a file from the configuration area that can be used by the framework
static org.eclipse.osgi.service.datalocation.Location getConfigurationLocation()
          Returns the configuration Location object
static org.eclipse.osgi.service.datalocation.Location getInstallLocation()
          Returns the install Location object
static org.eclipse.osgi.service.datalocation.Location getInstanceLocation()
          Returns the instance Location object
static java.io.File getOSGiConfigurationDir()
          Returns the File object under the configuration location used for the OSGi configuration
static org.eclipse.osgi.service.datalocation.Location getUserLocation()
          Returns the user Location object
static void initializeLocations()
          Initializes the Location objects for the LocationManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ_ONLY_AREA_SUFFIX

public static final java.lang.String READ_ONLY_AREA_SUFFIX
See Also:
Constant Field Values

PROP_INSTALL_AREA

public static final java.lang.String PROP_INSTALL_AREA
See Also:
Constant Field Values

PROP_CONFIG_AREA

public static final java.lang.String PROP_CONFIG_AREA
See Also:
Constant Field Values

PROP_CONFIG_AREA_DEFAULT

public static final java.lang.String PROP_CONFIG_AREA_DEFAULT
See Also:
Constant Field Values

PROP_SHARED_CONFIG_AREA

public static final java.lang.String PROP_SHARED_CONFIG_AREA
See Also:
Constant Field Values

PROP_INSTANCE_AREA

public static final java.lang.String PROP_INSTANCE_AREA
See Also:
Constant Field Values

PROP_INSTANCE_AREA_DEFAULT

public static final java.lang.String PROP_INSTANCE_AREA_DEFAULT
See Also:
Constant Field Values

PROP_USER_AREA

public static final java.lang.String PROP_USER_AREA
See Also:
Constant Field Values

PROP_USER_AREA_DEFAULT

public static final java.lang.String PROP_USER_AREA_DEFAULT
See Also:
Constant Field Values

PROP_MANIFEST_CACHE

public static final java.lang.String PROP_MANIFEST_CACHE
See Also:
Constant Field Values

PROP_USER_HOME

public static final java.lang.String PROP_USER_HOME
See Also:
Constant Field Values

PROP_USER_DIR

public static final java.lang.String PROP_USER_DIR
See Also:
Constant Field Values

BUNDLES_DIR

public static final java.lang.String BUNDLES_DIR
See Also:
Constant Field Values

STATE_FILE

public static final java.lang.String STATE_FILE
See Also:
Constant Field Values

LAZY_FILE

public static final java.lang.String LAZY_FILE
See Also:
Constant Field Values

BUNDLE_DATA_FILE

public static final java.lang.String BUNDLE_DATA_FILE
See Also:
Constant Field Values

MANIFESTS_DIR

public static final java.lang.String MANIFESTS_DIR
See Also:
Constant Field Values

CONFIG_FILE

public static final java.lang.String CONFIG_FILE
See Also:
Constant Field Values

ECLIPSE_PROPERTIES

public static final java.lang.String ECLIPSE_PROPERTIES
See Also:
Constant Field Values
Constructor Detail

LocationManager

public LocationManager()
Method Detail

buildURL

public static java.net.URL buildURL(java.lang.String spec,
                                    boolean trailingSlash)
Builds a URL with the given specification

Parameters:
spec - the URL specification
trailingSlash - flag to indicate a trailing slash on the spec
Returns:
a URL

initializeLocations

public static void initializeLocations()
Initializes the Location objects for the LocationManager.


getUserLocation

public static org.eclipse.osgi.service.datalocation.Location getUserLocation()
Returns the user Location object

Returns:
the user Location object

getConfigurationLocation

public static org.eclipse.osgi.service.datalocation.Location getConfigurationLocation()
Returns the configuration Location object

Returns:
the configuration Location object

getInstallLocation

public static org.eclipse.osgi.service.datalocation.Location getInstallLocation()
Returns the install Location object

Returns:
the install Location object

getInstanceLocation

public static org.eclipse.osgi.service.datalocation.Location getInstanceLocation()
Returns the instance Location object

Returns:
the instance Location object

getOSGiConfigurationDir

public static java.io.File getOSGiConfigurationDir()
Returns the File object under the configuration location used for the OSGi configuration

Returns:
the OSGi configuration directory

getConfigurationFile

public static java.io.File getConfigurationFile(java.lang.String filename)
Returns a file from the configuration area that can be used by the framework

Parameters:
filename - the filename
Returns:
a file from the configuration area