inital plugin from webtools project
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / src / net / sourceforge / phpdt / internal / debug / core / Environment.java
1 /**********************************************************************
2 Copyright (c) 2000, 2002 IBM Corp. and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Common Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/cpl-v10.html
7
8 Contributors:
9         R M Yorston - Initial implementation
10         Vicente Fernando - www.alfersoft.com.ar
11 **********************************************************************/
12 package net.sourceforge.phpdt.internal.debug.core;
13
14 public class Environment {
15         static {
16                 java.lang.System.loadLibrary("Environment");
17         }
18
19         private Environment() {
20         }
21
22         /**
23          * Gets an environment variable. An environment variable is a
24          * system-dependent external variable that has a string value.
25          *
26          * @param       name    name of the environment variable
27          * @return      the value of the variable, or <code>null</code> if the
28          * variable is not defined.
29          */
30         public static native String getenv(String name) ;
31
32         /**
33          * Sets an environment variable. An environment variable is a
34          * system-dependent external variable that has a string value.
35          *
36          * @param       name    name of the environment variable
37          * @param       value   value to set
38          * @return      1 if variable could be set, 0 if not.
39          */
40         public static native String setenv(String name, String value) ;
41
42 }