01: /*******************************************************************************
02: * Copyright (c) 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.launching;
11:
12: import java.util.Map;
13:
14: import org.eclipse.core.runtime.CoreException;
15: import org.eclipse.core.runtime.IProgressMonitor;
16:
17: /**
18: * Optional extensions that may be implemented by an
19: * {@link org.eclipse.jdt.launching.IVMInstall}, providing access to
20: * a JRE's system properties.
21: * <p>
22: * Clients that implement {@link org.eclipse.jdt.launching.IVMInstall} may additionally
23: * implement this interface. However, it is strongly recommended that clients subclass
24: * {@link org.eclipse.jdt.launching.AbstractVMInstall} instead, which already implements
25: * this interface, and will insulate clients from additional API additions in the future.
26: * </p>
27: * @since 3.2
28: */
29: public interface IVMInstall3 {
30:
31: /**
32: * Evaluates the specified system properties in this VM, returning the result
33: * as a map of property names to property values.
34: *
35: * @param properties the property names to evaluate, for example <code>{"user.home"}</code>
36: * @param monitor progress monitor or <code>null</code>
37: * @return map of system property names to associated property values
38: * @throws CoreException if an exception occurs evaluating the properties
39: * @since 3.2
40: */
41: public Map evaluateSystemProperties(String[] properties,
42: IProgressMonitor monitor) throws CoreException;
43: }
|