org.eclipse.core.runtime.adaptor
Class LocationManager

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

public class LocationManager
extends Object

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

Clients may not extend this class.

Since:
3.1

Field Summary
static String BUNDLE_DATA_FILE
           
static String BUNDLES_DIR
           
static String CONFIG_FILE
           
static String ECLIPSE_PROPERTIES
           
static String LAZY_FILE
           
static String MANIFESTS_DIR
           
static String PROP_CONFIG_AREA
           
static String PROP_CONFIG_AREA_DEFAULT
           
static String PROP_HOME_LOCATION_AREA
           
static String PROP_INSTALL_AREA
           
static String PROP_INSTANCE_AREA
           
static String PROP_INSTANCE_AREA_DEFAULT
           
static String PROP_MANIFEST_CACHE
           
static String PROP_SHARED_CONFIG_AREA
           
static String PROP_USER_AREA
           
static String PROP_USER_AREA_DEFAULT
           
static String PROP_USER_DIR
           
static String PROP_USER_HOME
           
static String READ_ONLY_AREA_SUFFIX
           
static String STATE_FILE
           
 
Constructor Summary
LocationManager()
           
 
Method Summary
static URL buildURL(String spec, boolean trailingSlash)
          Builds a URL with the given specification
static File getConfigurationFile(String filename)
          Returns a file from the configuration area that can be used by the framework
static Location getConfigurationLocation()
          Returns the configuration Location object
static Location getEclipseHomeLocation()
           
static Location getInstallLocation()
          Returns the install Location object
static Location getInstanceLocation()
          Returns the instance Location object
static File getOSGiConfigurationDir()
          Returns the File object under the configuration location used for the OSGi configuration
static 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 String READ_ONLY_AREA_SUFFIX
See Also:
Constant Field Values

PROP_INSTALL_AREA

public static final String PROP_INSTALL_AREA
See Also:
Constant Field Values

PROP_CONFIG_AREA

public static final String PROP_CONFIG_AREA
See Also:
Constant Field Values

PROP_CONFIG_AREA_DEFAULT

public static final String PROP_CONFIG_AREA_DEFAULT
See Also:
Constant Field Values

PROP_SHARED_CONFIG_AREA

public static final String PROP_SHARED_CONFIG_AREA
See Also:
Constant Field Values

PROP_INSTANCE_AREA

public static final String PROP_INSTANCE_AREA
See Also:
Constant Field Values

PROP_INSTANCE_AREA_DEFAULT

public static final String PROP_INSTANCE_AREA_DEFAULT
See Also:
Constant Field Values

PROP_USER_AREA

public static final String PROP_USER_AREA
See Also:
Constant Field Values

PROP_USER_AREA_DEFAULT

public static final String PROP_USER_AREA_DEFAULT
See Also:
Constant Field Values

PROP_MANIFEST_CACHE

public static final String PROP_MANIFEST_CACHE
See Also:
Constant Field Values

PROP_USER_HOME

public static final String PROP_USER_HOME
See Also:
Constant Field Values

PROP_USER_DIR

public static final String PROP_USER_DIR
See Also:
Constant Field Values

PROP_HOME_LOCATION_AREA

public static final String PROP_HOME_LOCATION_AREA
See Also:
Constant Field Values

BUNDLES_DIR

public static final String BUNDLES_DIR
See Also:
Constant Field Values

STATE_FILE

public static final String STATE_FILE
See Also:
Constant Field Values

LAZY_FILE

public static final String LAZY_FILE
See Also:
Constant Field Values

BUNDLE_DATA_FILE

public static final String BUNDLE_DATA_FILE
See Also:
Constant Field Values

MANIFESTS_DIR

public static final String MANIFESTS_DIR
See Also:
Constant Field Values

CONFIG_FILE

public static final String CONFIG_FILE
See Also:
Constant Field Values

ECLIPSE_PROPERTIES

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

LocationManager

public LocationManager()
Method Detail

buildURL

public static URL buildURL(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 Location getUserLocation()
Returns the user Location object

Returns:
the user Location object

getConfigurationLocation

public static Location getConfigurationLocation()
Returns the configuration Location object

Returns:
the configuration Location object

getInstallLocation

public static Location getInstallLocation()
Returns the install Location object

Returns:
the install Location object

getInstanceLocation

public static Location getInstanceLocation()
Returns the instance Location object

Returns:
the instance Location object

getEclipseHomeLocation

public static Location getEclipseHomeLocation()

getOSGiConfigurationDir

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

Returns:
the OSGi configuration directory

getConfigurationFile

public static File getConfigurationFile(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


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.