Java Code Examples for org.eclipse.core.runtime.Platform#OS_WIN32
The following examples show how to use
org.eclipse.core.runtime.Platform#OS_WIN32 .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EnvPath.java From typescript.java with MIT License | 6 votes |
/** Creates a OS-Dependent LineCommand to set the Path-Variable. */ public static LineCommand createSetPathCommand(String path) { String os = Platform.getOS(); String command = null; switch (os) { case Platform.OS_WIN32: command = "SET " + path; break; case Platform.OS_LINUX: case Platform.OS_MACOSX: command = "export " + path; break; //case Platform.OS_AIX: //case Platform.OS_SOLARIS: //case Platform.OS_HPUX: //case Platform.OS_QNX: default: // Verification needed command = "export " + path; break; } return new LineCommand(command); }
Example 2
Source File: InitializeLaunchConfigurations.java From wildwebdeveloper with Eclipse Public License 2.0 | 5 votes |
private static String getDefaultNodePath() { switch (Platform.getOS()) { case Platform.OS_MACOSX: return "/usr/local/bin/node"; case Platform.OS_WIN32: return "C:\\Program Files\\nodejs\\node.exe"; default: return "/usr/bin/node"; } }