public class Environment
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Environment()
Should avoid instances of this class.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isWinOS()
Checks whether this program is currently running on a Windows machine.
|
private static int |
parseVersionPart(java.lang.String version,
int part)
Parses the numerical version part from
version. |
static boolean |
runsInEclipse()
Checks whether EASy runs inside of Eclipse.
|
static java.io.File |
toFile(java.net.URL localURL)
Converts the given
URL to an File. |
public static boolean runsInEclipse()
easy.notInEclipse is somehow set.private static int parseVersionPart(java.lang.String version,
int part)
version.version - the textual representation of the (Eclipse) versionpart - the 0-based index for the part to parse0 for no resultpublic static boolean isWinOS()
public static java.io.File toFile(java.net.URL localURL)
URL to an File. The URL must point to an element inside the local
file system. This method should be used to resolve URL given be Eclipse for resolving locally installed
resources. This method should be aware of the white space problem, which may occur if working with
URIs.localURL - An url pointing to a local resource, must not be null.Copyright © 2009 - 2018 SSE. All Rights Reserved.