|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.internal.adaptor.EclipseEnvironmentInfo
public class EclipseEnvironmentInfo
Internal class.
| Method Summary | |
|---|---|
java.lang.String[] |
getCommandLineArgs()
Returns all command line arguments specified when the running framework was started. |
static EclipseEnvironmentInfo |
getDefault()
|
java.lang.String[] |
getFrameworkArgs()
Returns the arguments consumed by the framework implementation itself. |
java.lang.String |
getNL()
Returns the string name of the current locale for use in finding files whose path starts with $nl$. |
java.lang.String[] |
getNonFrameworkArgs()
Returns the arguments not consumed by the framework implementation itself. |
java.lang.String |
getOS()
Returns the string name of the current operating system for use in finding files whose path starts with $os$. |
java.lang.String |
getOSArch()
Returns the string name of the current system architecture. |
java.lang.String |
getProperty(java.lang.String key)
Returns the value for the specified property. |
java.lang.String |
getWS()
Returns the string name of the current window system for use in finding files whose path starts with $ws$. |
static java.lang.String |
guessOS(java.lang.String osName)
|
static java.lang.String |
guessWS(java.lang.String os)
|
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. |
static void |
setAllArgs(java.lang.String[] allArgs)
|
static void |
setAppArgs(java.lang.String[] appArgs)
|
static void |
setFrameworkArgs(java.lang.String[] frameworkArgs)
|
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value)
Sets the value for the specified property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EclipseEnvironmentInfo getDefault()
public boolean inDevelopmentMode()
EnvironmentInfotrue if the framework is in development mode
and false otherwise.
inDevelopmentMode in interface EnvironmentInfopublic boolean inDebugMode()
EnvironmentInfotrue if the framework is in debug mode and
false otherwise.
inDebugMode in interface EnvironmentInfopublic java.lang.String[] getCommandLineArgs()
EnvironmentInfo
getCommandLineArgs in interface EnvironmentInfopublic java.lang.String[] getFrameworkArgs()
EnvironmentInfo
getFrameworkArgs in interface EnvironmentInfopublic java.lang.String[] getNonFrameworkArgs()
EnvironmentInfo
getNonFrameworkArgs in interface EnvironmentInfopublic java.lang.String getOSArch()
EnvironmentInfojava.lang.System.getProperty("os.arch").
getOSArch in interface EnvironmentInfopublic java.lang.String getNL()
EnvironmentInfo$nl$.
getNL in interface EnvironmentInfopublic java.lang.String getOS()
EnvironmentInfo$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.
getOS in interface EnvironmentInfopublic java.lang.String getWS()
EnvironmentInfo$ws$. Return null
if the window system cannot be determined.
getWS in interface EnvironmentInfonullpublic static void setAllArgs(java.lang.String[] allArgs)
public static void setAppArgs(java.lang.String[] appArgs)
public static void setFrameworkArgs(java.lang.String[] frameworkArgs)
public static java.lang.String guessWS(java.lang.String os)
public static java.lang.String guessOS(java.lang.String osName)
public java.lang.String getProperty(java.lang.String key)
EnvironmentInfoosgi.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.
getProperty in interface EnvironmentInfokey - the property key
public java.lang.String setProperty(java.lang.String key,
java.lang.String value)
EnvironmentInfoosgi.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.
setProperty in interface EnvironmentInfokey - the property keyvalue - the value of the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||