public interface EnvironmentInfo
This interface is not intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
String[] |
getCommandLineArgs()
Returns all command line arguments specified when the running framework was started.
|
String[] |
getFrameworkArgs()
Returns the arguments consumed by the framework implementation itself.
|
String |
getNL()
Returns the string name of the current locale for use in finding files
whose path starts with
$nl$ . |
String[] |
getNonFrameworkArgs()
Returns the arguments not consumed by the framework implementation itself.
|
String |
getOS()
Returns the string name of the current operating system for use in finding
files whose path starts with
$os$ . |
String |
getOSArch()
Returns the string name of the current system architecture.
|
String |
getProperty(String key)
Returns the value for the specified property.
|
String |
getWS()
Returns the string name of the current window system for use in finding files
whose path starts with
$ws$ . |
boolean |
inDebugMode()
Returns
true if the framework is in debug mode and
false otherwise. |
boolean |
inDevelopmentMode()
Returns
true if the framework is in development mode
and false otherwise. |
String |
setProperty(String key,
String value)
Sets the value for the specified property.
|
String[] getCommandLineArgs()
String[] getFrameworkArgs()
String[] getNonFrameworkArgs()
String getOSArch()
java.lang.System.getProperty("os.arch")
.String getNL()
$nl$
.String getOS()
$os$
. Return Constants.OS_UNKNOWN
if the operating system cannot be determined.
The value may indicate one of the operating systems known to the platform
(as specified in org.eclipse.core.runtime.Platform#knownOSValues
)
or a user-defined string if the operating system name is specified on the command line.
String getWS()
$ws$
. Return null
if the window system cannot be determined.null
boolean inDebugMode()
true
if the framework is in debug mode and
false
otherwise.boolean inDevelopmentMode()
true
if the framework is in development mode
and false
otherwise.String getProperty(String key)
osgi.framework.useSystemProperties
is used then
the environment properties are specific for each instance of the framework.
This method should be used instead of the System.getProperty(String)
method to avoid the global nature of system properties.
key
- the property keyString setProperty(String key, String value)
osgi.framework.useSystemProperties
is used then
the environment properties are specific for each instance of the framework.
This method should be used instead of the System.setProperty(String, String)
method to avoid the global nature of system properties.
key
- the property keyvalue
- the value of the property
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.