KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > debug > AntSourcePathComputerDelegate


1 /*******************************************************************************
2  * Copyright (c) 2004, 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.ant.internal.ui.debug;
12
13 import org.eclipse.core.runtime.CoreException;
14 import org.eclipse.core.runtime.IProgressMonitor;
15 import org.eclipse.debug.core.ILaunchConfiguration;
16 import org.eclipse.debug.core.sourcelookup.ISourceContainer;
17 import org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate;
18
19 /**
20  * Computes the default source lookup path for an Ant launch configuration.
21  * The default source lookup is a container that knows how to map the
22  * fully qualified file system paths to either the <code>IFile</code> within the workspace or
23  * a <code>LocalFileStorage</code> for buildfiles not in the workspace.
24  */

25 public class AntSourcePathComputerDelegate implements ISourcePathComputerDelegate {
26     
27     /* (non-Javadoc)
28      * @see org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate#computeSourceContainers(org.eclipse.debug.core.ILaunchConfiguration, org.eclipse.core.runtime.IProgressMonitor)
29      */

30     public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException {
31         return new ISourceContainer[] {new AntSourceContainer()};
32     }
33 }
Popular Tags