blob: 5df6ba41d3838f445c72bef3f5848746ad773529 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*******************************************************************************
* Copyright (c) 2003, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.core.sourcelookup;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.debug.core.ILaunchConfiguration;
/**
* A source path computer delegate computes the default source lookup path
* (set of source containers that should be considered) for a launch
* configuration.
* <p>
* A source path computer is contributed in plug-in XML via the
* <code>sourcePathComputers</code> extension point, providing a delegate
* to compute the default source lookup path specific to a launch
* configuration.
* </p>
* <p>
* Clients may implement this interface.
* </p>
* @see org.eclipse.debug.core.sourcelookup.ISourcePathComputer
* @since 3.0
*/
public interface ISourcePathComputerDelegate {
/**
* Returns a default collection source containers to be considered for the
* given launch configuration. The collection returned represents the default
* source lookup path for the given configuration.
*
* @param configuration the launch configuration for which a default source lookup path
* is to be computed
* @param monitor a progress monitor to be used in case of long operations
* @return a default collection source containers to be considered for the
* given launch configuration
* @exception CoreException if unable to compute a default source lookup path
*/
ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException;
}
|