1 /******************************************************************************* 2 * Copyright (c) 2005 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.jdt.launching.environments; 12 13 14 /** 15 * Manager for execution environments. The singleton manager is available 16 * via <code>JavaRuntime.getExecutionEnvironmentsManager()</code>. 17 * <p> 18 * Clients are not intended to implement this interface. 19 * </p> 20 * @since 3.2 21 */ 22 public interface IExecutionEnvironmentsManager { 23 24 /** 25 * Returns all registered execution environments. 26 * 27 * @return all registered execution environments 28 */ 29 public IExecutionEnvironment[] getExecutionEnvironments(); 30 31 /** 32 * Returns the execution environment associated with the given 33 * identifier or <code>null</code> if none. 34 * 35 * @param id execution environment identifier 36 * @return execution environment or <code>null</code> 37 */ 38 public IExecutionEnvironment getEnvironment(String id); 39 40 } 41