KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > launching > environments > IExecutionEnvironmentAnalyzerDelegate


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 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 import org.eclipse.core.runtime.CoreException;
14 import org.eclipse.core.runtime.IProgressMonitor;
15 import org.eclipse.jdt.launching.IVMInstall;
16
17 /**
18  * Analyzes vm installs for compatibility with execution environments.
19  * <p>
20  * An execution environment analyzer delegate is contributed in plug-in XML via
21  * the <code>org.eclipse.jdt.launching.executionEnvironments</code>
22  * extension point.
23  * </p>
24  * <p>
25  * Clients may implement this interface.
26  * </p>
27  * @since 3.2
28  */

29 public interface IExecutionEnvironmentAnalyzerDelegate {
30     
31     /**
32      * Analyzes the given vm install and returns a collection of compatible
33      * execution environments, possibly empty.
34      *
35      * @param vm vm install to analyze
36      * @param monitor progress monitor
37      * @return compatible execution environments, possibly empty
38      * @throws CoreException if an exception occurs analyzing the vm install
39      */

40     public CompatibleEnvironment[] analyze(IVMInstall vm, IProgressMonitor monitor) throws CoreException;
41
42 }
43
Popular Tags