|
||||||||||
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 |
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)
|
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()
EnvironmentInfo
true
if the framework is in development mode
and false
otherwise.
inDevelopmentMode
in interface EnvironmentInfo
public boolean inDebugMode()
EnvironmentInfo
true
if the framework is in debug mode and
false
otherwise.
inDebugMode
in interface EnvironmentInfo
public java.lang.String[] getCommandLineArgs()
EnvironmentInfo
getCommandLineArgs
in interface EnvironmentInfo
public java.lang.String[] getFrameworkArgs()
EnvironmentInfo
getFrameworkArgs
in interface EnvironmentInfo
public java.lang.String[] getNonFrameworkArgs()
EnvironmentInfo
getNonFrameworkArgs
in interface EnvironmentInfo
public java.lang.String getOSArch()
EnvironmentInfo
java.lang.System.getProperty("os.arch")
.
getOSArch
in interface EnvironmentInfo
public java.lang.String getNL()
EnvironmentInfo
$nl$
.
getNL
in interface EnvironmentInfo
public 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 EnvironmentInfo
public java.lang.String getWS()
EnvironmentInfo
$ws$
. Return null
if the window system cannot be determined.
getWS
in interface EnvironmentInfo
null
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |